
<
2
.75
7UGT U/CPWCN
=L/2*
#FFTGUU5RCEG
7/<:
PUSH
Push
Instruction Format:
PUSH src
Operation:
SP
←
SP - 1
@SP
←
src
The contents of the
SP
(stack pointer) are decremented by one. Then, the contents of the source operand are
loaded into the location addressed by the updated
SP
, adding a new element to the stack.
Flags
:When the instruction is executed, the flags are set as follows:
Example: The
SP
contains
1001H
. The following statement stores the contents of Register
FCH
(the Flag
Register) in location
1000H
. After the
PUSH
operation, the
SP
contains
1000H
.
PUSH FCH
Op Code: 70 FC
Example: The
SP
contains
61H
. Working register
R4
contains
FCH
. The following statement stores the
contents of register
FCH
(the Flag Register) in location
60H
. After the
PUSH
operation, the
SP
contains
60H
.
PUSH @R4
Op Code: 71 E4
C:
The value set by the preceding instruction.
Z:
The value set by the preceding instruction.
S:
The value set by the preceding instruction.
V:
The value set by the preceding instruction.
D:
The value set by the preceding instruction.
H:
The value set by the preceding instruction.
OPC
dst
OPC (Hex)
Address Mode
dst
70
71
R
IR