riscv-assembler
riscv-assembler copied to clipboard
Incorrect conversion of SW with offset
I found this bug recently:
sw x1, 4(x0)
converted into 0x00102423
, but should have been 0x00102223
I validated this with two online assemblers and by working through it by hand. I deduced that the immediate value is off by 1 place. Which looks to be true with my surface level testing of it.