pop


Pops from stack area (single register).

[Syntax]

pop reg

[Function]

Pops the value of the register specified by the operand from the stack area.

[Description]

-

When the pop instruction is executed, the assembler executes instruction expansion to generate two or more machine instructions.

pop     reg
ld.w    [sp], reg
add     4, sp

[Flag]

CY

1 if a carry occurs from MSB (Most Significant Bit), 0 if not

OV

1 if Integer-Overflow occurs, 0 if not

S

1 if the result is negative, 0 if not

Z

1 if the result is 0, 0 if not

SAT

---

Caution

Instruction expansion is performed, and set via an add instruction.