Subroutine/Stack Control Instructions - NEC PD754144 User Manual

4-bit single-chip microcontrollers
Table of Contents

Advertisement

11.4.11 Subroutine/stack control instructions

CALLA !addr1
II
×, ×, MBE, RBE, (SP–3)
Function: (SP–2)
(SP–4)
PC
(SP–6)
PC
PC
addr1, SP
11-0
CALL !addr
I/II
Function: [MkI mode]
(SP–1)
PC
(SP–3)
MBE, RBE, 0, 0
(SP–4)
PC
addr = 0000H to 0FFFH
[MkII mode]
×, ×, MBE, RBE
(SP–2)
(SP–3)
PC
(SP–5)
0, 0, 0, 0, (SP–6)
PC
addr, SP
11-0
Saves the contents of the program counter (return address), MBE, and RBE to the data memory (stack) addressed
by the stack pointer (SP), decrements the SP, and then branches to an address specified by 12-bit immediate data
addr.
CHAPTER 11 INSTRUCTION SET
PC
, (SP–5)
0, 0, 0, 0
3-0
11-8
SP – 6
, (SP–2)
PC
7-4
3-0
, PC
addr, SP
SP – 4
11-8
11-0
, (SP–4)
PC
7-4
3-0
PC
11-8
SP–6
User's Manual U10676EJ3V0UM
7-4
283

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents