Mariotti94/WebRISC-V

`sd a0,-24(s0)` is assembled as `sd a0,24(s0)` (negative offset treated as positive)

tmcintos opened this issue · 2 comments

sd a0,-24(s0) is assembled as sd a0,24(s0) (negative offset treated as positive). In contrast, a negative offset in a load instruction is handled correctly. e.g.

sd a0,-24(s0)
ld a0,-24(s0)

is loaded into instruction memory as:

sd a0,24(s0)
ld a0,-24(s0)

Thank you for bringing this bug to my attention, it has been fixed.

Confirmed. Thanks!