Stack

Push Pull onto the stack
76543210
 
\((SP-2) \longleftarrow qq_l, (SP-1) \longleftarrow qq_h\)
PUSH qq
11qq0101
 
\((SP-2) \longleftarrow IX_l, (SP-1) \longleftarrow IX_h\)
PUSH IX
11011101DD
11100101E5
 
\((SP-2) \longleftarrow IY_l, (SP-1) \longleftarrow IY_h\)
PUSH IY
11111101FD
11100101E5
 
\(qq_h \longleftarrow (SP-1), qq_l \longleftarrow (SP)\)
POP qq
11qq0001
 
\(IX_h \longleftarrow (SP-1), IX_l \longleftarrow (SP)\)
POP IX
11011101DD
11100001E1
 
\(IY_h \longleftarrow (SP-1), IY_l \longleftarrow (SP)\)
POP IY
11111101FD
11100001E1
Registers
Valueqq
00BC
01DE
10HL
11AF
Flags Affected
None.
Opcode Matrix
AFBCDEHLIXIY
PUSH
PUSH AF
F5111
PUSH BC
C5111
PUSH DE
D5111
PUSH HL
E5111
PUSH IX
DDE5215
PUSH IY
FDE5215
POP
POP AF
F1110
POP BC
C1110
POP DE
D1110
POP HL
E1110
POP IX
DDE1214
POP IY
FDE1214
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Memory