CM.POP

Pop Registers

CM.POP {reg_list}, stack_adj

Pops multiple registers from the stack and restores sp.

Details

CM.POP (Zcmp) restores a set of registers from the stack, increments sp by the matching stack-frame size, and returns. Used as a function epilogue.

Pseudocode Operation

{regs} = Mem[SP]; SP += adj;

Example

CM.POP {reg_list}, stack_adj

Encoding

Binary Layout
1011101
31:25
rlist
spimm
10
24:23
 
Format Push/Pop
Opcode 0x02
Extension Zcmp

Operands

  • rlist
    Register List
  • stack_adj
    Stack Adjustment