Uri Shaked
Uri Shaked
Ok, we have a fix. I verified it it the following test program: ```cpp int main(void) { uint8_t v0, v1, v2, v3; Serial.begin(9600); asm(R"( CLR r1 ; r1 is our...
Lovely! Thanks again for reporting it and all your help in tracing the issue!
Thanks for providing detailed reproduction with graphs! I haven't had the time to look into it yet, but it's on my list.
That's a good question.! One challenge with AssemblyScript is that the code can no longer be easily extended or modified from the JavaScript realm, and communication between JS and the...
Thanks! Another idea that I had would be to come up with a AVR → WebAssembly compiler, that is to convert the raw AVR binary into WebAssembly code that does...
That's a good question. I'd imagine having a bitmap or so that will indicate which memory addresses are mapped to peripherals. Whenever you update a memory address, you'd check in...
We could also mix-and-match. I believe stuff like the timers, which has to run constantly (in some cases after every CPU instruction or so), will have to live in the...
Yes, and as you say, it's good to have some baseline to compare to. Right now, the JS simulation has some thing that can already be improved (e.g. the lookup...
The current benchmark is pretty minimal - it runs compares a single-instruction program many many times to compare different approaches for decoding. I think a better benchmark would need: 1....
I believe that Web Assembly interpretation (written in C or RUST) wouldn't be much different than AssemblyScript, but it's pretty easy to write one or two instructions, as you suggest,...