We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running this instruction seems to generate a compile error
addi x1, x0, 2048 file.s: Assembler messages: file.s:6: Error: illegal operands `addi x1,x0,2048'
However, running this seems to work just fine.
addi x1, x0, 1024 OK!
I could be wrong, but I believe the immediate value should be 12 bits long.
The text was updated successfully, but these errors were encountered:
You're correct, indeed it has 12 bit, but its a sign extended imediate value, so the range is - 2048 to 2047
Sorry, something went wrong.
Oh, I see. I forgot that the assembly value is signed. Thanks for clearing that up for me 😄.
No branches or pull requests
Running this instruction seems to generate a compile error
However, running this seems to work just fine.
I could be wrong, but I believe the immediate value should be 12 bits long.
The text was updated successfully, but these errors were encountered: