
3 3
CHAPTER 3 FEATURES OF THE ARCHITECTURE AND MEMORY MAP
(7) Stack addressing
This addressing mode is used for save/restoration operation in interrupt processing or subroutine
processing.
In this addressing mode, the address indicated by the stack pointer (8 bits) of data memory bank 0 is
specified.
This addressing mode can be used for register save/restoration operation using the PUSH or POP
instruction as well as save/restoration operation in interrupt and subroutine processing.
Examples 1. A register is saved and restored in subroutine processing.
SUB:
PUSH
XA
PUSH
HL
PUSH
BS
; Save MBS and RBS
·
·
·
POP
BS
POP
HL
POP
XA
RET
2. The contents of the HL register pair are transferred to the DE register pair.
PUSH
HL
POP
DE
; DE <– HL
3. A branch is made to the address indicated by the [XABC] register.
PUSH
BC
PUSH
XA
RET
; Branch to address XABC
Summary of Contents for PD750004
Page 8: ... MEMO ...
Page 20: ... xii MEMO ...
Page 234: ...214 µPD750008 USER S MANUAL MEMO ...
Page 244: ...224 µPD750008 USER S MANUAL MEMO ...
Page 248: ...228 µPD750008 USER S MANUAL MEMO ...
Page 254: ...234 µPD75008 USER S MANUAL MEMO ...
Page 328: ...308 µPD750008 USER S MANUAL MEMO ...
Page 330: ...310 µPD750008 USER S MANUAL MEMO ...
Page 342: ...322 µPD750008 USER S MANUAL MEMO ...