PUSH rp
←
Function: (SP–1)
rp
H
Saves the contents of register pair rp (XA, HL, DE, or BC) to the data memory (stack) addressed by the stack pointer
(SP), and then decrements the contents of the SP.
The higher 4 bits of the register pair (rp
4 bits (rp
: A, L, E, or C) are saved to the stack addressed by (SP–2).
L
PUSH BS
←
Function: (SP–1)
MBS, (SP–2)
Saves the contents of the memory bank select register (MBS) and register bank select register (RBS) to the data
memory (stack) addressed by the stack pointer (SP), and then decrements the contents of the SP.
POP rp
←
Function: rp
(SP), rp
L
Restores the contents of the data memory addressed by the stack pointer (SP) to register pair rp (XA, HL, DE,
or BC), and then decrements the contents of the stack pointer.
The contents of (SP) are restored to the higher 4 bits of the register pair (rp
(SP+1) are restored to the lower 4 bits (rp
POP BS
←
Function: RBS
(SP), MBS
Restores the contents of the data memory (stack) addressed by the stack pointer (SP) to the register bank select
register (RBS) and memory bank select register (MBS), and then increments the contents of the SP.
286
CHAPTER 11 INSTRUCTION SET
←
←
, (SP–2)
rp
, SP
SP–2
L
, X, H, D, or B) are saved to the stack addressed by (SP–1), and the lower
H
←
←
RBS, SP
←
←
(SP+1), SP
SP+2
H
: A, L, E, or C).
L
←
←
(SP+1), SP
SP+2
User's Manual U10676EJ3V0UM
SP–2
, X, H, D, or B), and the contents of
H