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

Pseudo-instruction in the explanations

Questions that mention Pseudo-instruction (4)

  1. Which real instruction does the assembler use for the RISC-V pseudo-instruction "nop" (do nothing)?
  2. Which real instruction executes the RISC-V pseudo-instruction "ret"?
  3. When the RISC-V code above finishes, what is the value in t0?
  4. What does the RISC-V instruction "jal ra, func" do?

Related terms

Assembler Calling convention Return address Addressing mode Application binary interface (ABI) Branch delay slot Callee-saved register Caller-saved register Compressed instruction Condition code

Back to the glossary