I played around with it, and it's very neat. This is the first time I've seen an assembly REPL and I wish I had something like this that ran native for playing with unfamiliar instructions.<p>I did find a couple minor issues with the simulator: MVN is supposed to be a bitwise NOT but the simulator does a two's-complement negation instead (<a href="https://github.com/rtybanana/irisc-web/blob/main/src/interpreter/interpreter.ts#L115" rel="nofollow">https://github.com/rtybanana/irisc-web/blob/main/src/interpr...</a>), and it seems negative immediate offsets aren't supported, e.g.<p><pre><code> ldr r0, [r1, #-4]</code></pre>
Thanks for the bug reports, if you like you can open some issues for those and I’ll look into them ASAP.<p>Interesting about the bitwise NOT, I’ll need to dig up the manual on this I must have missed that.