Data Saved To Stack Memory (Mkii Mode); Data Restored From Stack Memory (Mkii Mode) - NEC PD754144 User Manual

4-bit single-chip microcontrollers
Table of Contents

Advertisement

Figure 4-11. Data Saved to Stack Memory (MkII Mode)
PUSH instruction
Stack
SP – 2
Register pair, low
SP – 1
Register pair, high
SP
Figure 4-12. Data Restored from Stack Memory (MkII Mode)
POP instruction
Stack
SP
Register pair, low
SP + 1
Register pair, high
SP + 2
Note The contents of PSW other than MBE and RBE are not saved or restored.
Remark *: Undefined
CHAPTER 4 INTERNAL CPU FUNCTION
CALL, CALLA, CALLF instruction
Stack
SP – 6
PC11-PC8
SP – 5
0
0
0
SP – 4
PC3-PC0
SP – 3
PC7-PC4
SP – 2
*
*
MBE RBE
SP – 1
*
*
*
SP
RET, RETS instruction
Stack
SP
PC11-PC8
SP + 1
0
0
0
SP + 2
PC3-PC0
SP + 3
PC7-PC4
SP + 4
*
*
MBE RBE
SP + 5
*
*
*
SP + 6
User's Manual U10676EJ3V0UM
Interrupt
SP – 6
PC11-PC8
0
SP – 5
0
SP – 4
PC3-PC0
SP – 3
PC7-PC4
SP – 2
IST1
IST0
Note
*
SP – 1
CY SK2
SP
RETI instruction
SP
PC11-PC8
0
SP + 1
0
SP + 2
PC3-PC0
SP + 3
PC7-PC4
SP + 4
IST1
IST0
Note
*
SP + 5
CY SK2
SP + 6
Stack
0
0
0
MBE RBE
PSW
SK1 SK0
Stack
0
0
0
MBE RBE
PSW
SK1 SK0
73

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents