289
CHAPTER 11 INSTRUCTION SET
11.4.11 Subroutine Stack Control Instructions
CALLA !addr1
Function: For the µPD750008
(SP–2) <– x, x, MBE, RBE, (SP–3) <– PC7-4
(SP–4) <– PC3-0, (SP–5) <– 0, 0, 0, PC12
(SP–6) <– PC11-8
PC12-0 <– addr1, SP <– SP–6
CALL !addr
Function: For the µPD750008
[Mk I mode]
(SP–1) <– PC7-4, (SP–2) <– PC3-0
(SP–3) <– MBE, RBE, 0, PC12
(SP–4) <– PC11-8, PC12-0 <– addr, SP <– SP–4
addr = 0000H – 1FFFH
[Mk II mode]
(SP–2) <– x, x, MBE, RBE
(SP–3) <– PC7-4, (SP–4) <– PC3-0
(SP–5) <– 0, 0, 0, PC12, (SP–6) <– PC11-8
PC12-0 <– addr, SP <– SP–6
addr = 0000H – 1FFFH
Saves the contents of the program counter (return address), memory bank enable flag (MBE), and register
bank enable flag (RBE) to the data memory location (stack) addressed by the stack pointer (SP), then branches
to the location addressed by the 14-bit immediate data addr after decrementing SP.
Remark "Function" in this section is applicable to the µPD750008 whose program counter consists of
13 bits (addr = 0000H to 1FFFH).
However, this is also applicable to the µPD750004 whose program counter consists of 12
bits (addr = 0000H to 0FFFH), the µPD750006 whose program counter consists of 13 bits
(addr = 0000H to 17FFH), and the µPD75P0016 whose program counter consists of 14 bits
(addr = 0000H to 3FFFH).
I/II
II