AntonLydike / riscemu

RISC-V emulator in python
MIT License
48 stars 14 forks source link

j and jal instructions jump to absolute offset when immediate is int #29

Closed superlopuh closed 1 year ago

superlopuh commented 1 year ago

My understanding of the spec is that when the immediate value is an integer, it's a relative offset to support position-independent code.

AntonLydike commented 1 year ago

Fixed with #40