riscv-assembler icon indicating copy to clipboard operation
riscv-assembler copied to clipboard

Incorrect conversion of SW with offset

Open Paecificjr opened this issue 1 year ago • 0 comments

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.

Paecificjr avatar Sep 26 '23 01:09 Paecificjr