logoalt Hacker News

201984today at 3:17 AM1 replyview on HN

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/interpr...), and it seems negative immediate offsets aren't supported, e.g.

  ldr r0, [r1, #-4]

Replies

rtybananatoday at 10:39 AM

Thanks 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.