3 ms·
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
by 201984 9mo ago
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.
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 (https://github.com/rtybanana/irisc-web/blob/main/src/interpreter/interpreter.ts#L115 https://github.com/rtybanana/irisc-web/blob/main/src/interpr...), and it seems negative immediate offsets aren't supported, e.g.
ldr r0, [r1, #-4]
- rtybanana 9mo agoThanks for the bug reports, if you like you can open some issues for those and I’ll look into them ASAP. Interesting about the bitwise NOT, I’ll need to dig up the manual on this I must have missed that.