What is Pseudo-instruction?
Something written like an instruction in assembly that the assembler replaces with one or more real instructions, such as RISC-V nop, mv, li, j and ret.
Field: ISA & Assembly
Something written like an instruction in assembly that the assembler replaces with one or more real instructions, such as RISC-V nop, mv, li, j and ret.
Field: ISA & Assembly
bnez is a pseudo-instruction for "bne t1, zero, loop".
When the RISC-V code above finishes, what is the value in t…The calling convention puts the return address in ra (x1), so a call is written "jal ra, func", or "call func" as a pseudo-instruction.
What does the RISC-V instruction "jal ra, func" do?Assembler Calling convention Return address Addressing mode Application binary interface (ABI) Branch delay slot Callee-saved register Caller-saved register Compressed instruction Condition code