<< Previous | Next >>

POP zz     Stack Operation     Rabbit 2000/3000/4000 Instruction
Opcode
Instruction
Clocks
Operation
---- POP zz 7 (2,1,2,2) zzlow = (SP)
zzhigh = (SP + 1)
SP = SP + 2

F1

POP AF

7 (2,1,2,2)

F = (SP)
A = (SP + 1)
SP = SP + 2

C1

POP BC

7 (2,1,2,2)

C = (SP)
B = (SP + 1)
SP = SP + 2

D1

POP DE

7 (2,1,2,2)

E = (SP)
D = (SP + 1)
SP = SP + 2

E1

POP HL

7 (2,1,2,2)

L = (SP)
H = (SP + 1)
SP = SP + 2


Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-
·

Description

Loads the low-order byte of zz (any of AF, BC, DE, or HL) with the data at the memory address in SP then loads the high-order byte of zz with the data at the memory address immediately following the one held in SP. SP is then incremented twice.


<< Previous | Next >>