Pop (Pop Data) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

POP (POP data)

<Operation>
@SP+ → Rn
<Assembly-Language Format>
POP Rn
<Examples>
POP R1
<Operand Size>
Word
<Description>
This instruction pops data from the stack to a 16-bit general register and sets condition code
flags according to the data value.
POP.W Rn is identical in machine language to MOV.W @SP+, Rn.
<Instruction Formats>
Addressing
mode
Mnem.
Operands
POP
Rd
<Condition Code>
I
— — — —
I: Previous value remains unchanged.
H: Previous value remains unchanged.
N: Set to "1" if the data value is negative;
otherwise cleared to "0."
Z: Set to "1" if the data value is zero;
otherwise cleared to "0."
V: Cleared to "0."
C: Previous value remains unchanged.
Instruction code
1st byte
2nd byte
6
D
7
0 rn
96
H
N
Z
3rd byte
4th byte
POP
V
C
0
No. of
states
6

Advertisement

Table of Contents
loading

Table of Contents