Skip to content

What is the different between 0x800 and -2048 #4

Closed Answered by ilg-ul
ranvd asked this question in Q&A
Discussion options

You must be logged in to vote

I regret but I don't know why only signed values are accepted, probably this is how the instructions are defined, with 12-bit signed immediate values and 0x800 is interpreted as positive 2048, which is outside the range.

For details related to the assembler syntax, please ask on the RISC-V support forums.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ranvd
Comment options

Answer selected by ranvd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants