What does addi a0, zero, 2
mean in pseudocode? Is it a0=a0+2
??
I am not sure because we do not have explicit register in this instruction to tell us where goes our result.
There is not so much pseudo code in this risc-v assembly line :
addi a0, zero, 2
But a0 and zero are ABI name of RISC-V register ( see this pdf page 3 ).
Then the assembly line given will do this :
x10 = 0 + 2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.