Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jr command jumps to relative location instead of absolute #15

Closed
erikik8090 opened this issue Feb 10, 2019 · 0 comments
Closed

jr command jumps to relative location instead of absolute #15

erikik8090 opened this issue Feb 10, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@erikik8090
Copy link

Courtesy of @Savioor at shooshx#13
As it says in the official specifications:

C.JR (jump register) performs an unconditional control transfer to the address in register rs1. C.JR Rexpands to jalr x0, rs1, 0.

Despite this, using jr will behave like j, jumping by the value in the register from the current location.

@erikik8090 erikik8090 changed the title je command jumps to relative location instead of absolute jr command jumps to relative location instead of absolute Feb 10, 2019
@erikik8090 erikik8090 self-assigned this Feb 10, 2019
@erikik8090 erikik8090 added the bug Something isn't working label Feb 10, 2019
erikik8090 added a commit that referenced this issue Feb 17, 2019
Fix jalr to absolute addressing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant