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

Table of Contents

Advertisement

PUSH (PUSH data)

<Operation>
Rn → @–SP
<Assembly-Language Format>
PUSH Rn
<Examples>
PUSH R2
<Operand Size>
Word
<Description>
This instruction pushes data from a 16-bit general register onto the stack and sets condition
code flags according to the data value.
PUSH.W Rn is identical in machine language to MOV.W Rn, @–SP.
<Instruction Formats>
Addressing
mode
Mnem.
Operands
PUSH
Rs
<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
F
0 rn
97
H
N
Z
3rd byte
4th byte
PUSH
V
C
0
No. of
states
6

Advertisement

Table of Contents
loading

Table of Contents