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

Error with I type instructions #134

Closed
ziul123 opened this issue Sep 30, 2021 · 1 comment
Closed

Error with I type instructions #134

ziul123 opened this issue Sep 30, 2021 · 1 comment

Comments

@ziul123
Copy link
Contributor

ziul123 commented Sep 30, 2021

Trying to assemble the instruction addi t0, t0, 0xEEE results in an operand is out of range error, even though the number 0xEEE has 12 bits, therefore complying with the RISC-V specs for I type instructions.

image

@TheThirdOne
Copy link
Owner

This is a duplicate of #103 and #5.

TLDR: Write the sign-extended value. addi t0, t0, 0x00000EEE is not a possible instruction so RARS rejects it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants