English
Language : 

Z380 Datasheet, PDF (54/115 Pages) Zilog, Inc. – MICROPROCESSOR
ZILOG
PUSH/POP INSTRUCTIONS
MICROPROCESSOR
Mnemonic
PUSH qq
PUSH XY
PUSH nn
PUSH SR
POP qq
POP XY
POP SR
Symbolic
Operation
(SP-2) ← qql
(SP-1) ← qqh
SP ← SP-2
(SP-2) ← XYL
(SP-1) ← XYU
SP ← SP-2
(SP-2) ← nnl
(SP-1) ← nnh
SP ← SP-2
Flags
P/
SZ x Hx VNC
••x•x•••
••x•x•••
••x•x•••
(SP-2) ← SR(7-0) • • x • x • • •
(SP-1) ← SR(15-8)
SP ← SP-2
qqh ← (SP+1)
••x•x•••
qql ← (SP)
SP ← SP+2
XYU ← (SP+1)
••x•x•••
XYL ← (SP)
SP ← SP+2
SR(6-0) ← (SP)
••x•x•••
SR(15-8) ← (SP+1)
SR(23-16) ← (SP+1)
SR(31-24) ← (SP+1)
SP ← SP+2
Opcode
76 543 210
11 qq0 101
11 y11 101
11 100 101
11 111 101
11 110 101
← n →
← n →
11 101 101
11 000 101
11 qq0 001
11 y11 101
11 100 001
11 101 101
11 000 001
# of Execute
HEX Bytes Time Notes
1 3+w N,L2,L4
2 3+w N, L2
E5
FD 4 3+w N, L4,I
F5
ED 2 3+w N, L2
C5
1 2+r N, L3, L5
2
E1
ED 2
C1
1+r N, L3
3+r N, L6
qq
Pair
00
BC
01
DE
10
HL
11
AF
y
XY
0
IX
1
IY
Notes:
Instructions in Italic face are Z380 new instructions, instructions with underline are Z180 original instructions.
I: This instruction may be used with DDIR Immediate instructions.
L2: In Long Word mode, this instruction PUSHes the register’s extended portion (register with “z” suffix) before pushing the contents of the register
to the stack.
L3: In Long Word mode, this instruction POPs the register’s extended portion (register with “z” suffix) after popping the contents of the register to the
stack.
L4: In Long Word mode, PUSH AF and PUSH nn instructions push 0000h onto stack in the place of the extended register portion.
L5: In Long Word mode, POP AF instruction increments SP by two after POPing 1 word of data from stack.
L6: In Long Word mode, this instruction POPs one more word from stack and loads into SR(31-16), instead of duplicating (SP+1) location into SR(31-
16).
N: In Native mode, this instruction uses addresses modulo 65536.
(10): In case of AF register pair, execute time is one clock less.
PS010001-0301