POP zz
Stack Operation
Rabbit 2000/3000/4000 Instruction
|
| ---- |
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
|
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.