35
CHAPTER 3 CPU ARCHITECTURE
RETI and RETB
Instruction
PSW
PC15-PC8
PC15-PC8
PC7-PC0
Register Pair Lower
SP SP + 2
SP
Register Pair Upper
RET Instruction
POP rp Instruction
SP + 1
PC7-PC0
SP SP + 2
SP
SP + 1
SP + 2
SP
SP + 1
SP SP + 3
Interrupt and
BRK Instruction
PSW
PC15-PC8
PC15-PC8
PC7-PC0
Register Pair Lower
SP SP _ 2
SP _ 2
Register Pair Upper
CALL, CALLF, and
CALLT Instruction
PUSH rp Instruction
SP _ 1
SP
SP SP _ 2
SP _ 2
SP _ 1
SP
PC7-PC0
SP _ 3
SP _ 2
SP _ 1
SP
SP SP _ 3
0
15
SP
(3) Stack pointer (SP)
This is a 16-bit register to hold the start address of the memory stack area. Only the internal high-speed RAM
area (FE00H-FEFFH for the
µ
PD78081, FD80H-FEFFH for the
µ
PD78082, and FD00H-FEFFH for the
µ
PD78P083) can be set as the stack area.
Figure 3-9. Stack Pointer Configuration
The SP is decremented ahead of write (save) to the stack memory and is incremented after read (reset) from
the stack memory.
Each stack operation saves/resets data as shown in Figures 3-10 and 3-11.
Caution Since RESET input makes SP contents indeterminate, be sure to initialize the SP before
instruction execution.
Figure 3-10. Data to be Saved to Stack Memory
Figure 3-11. Data to be Reset from Stack Memory
Summary of Contents for NEC PD78081(A)
Page 23: ...xii MEMO...
Page 37: ...14 CHAPTER 1 OUTLINE MEMO...
Page 47: ...24 CHAPTER 2 PIN FUNCTION MEMO...
Page 91: ...68 CHAPTER 4 PORT FUNCTIONS MEMO...
Page 125: ...102 CHAPTER 6 8 BIT TIMER EVENT COUNTERS 5 AND 6 MEMO...
Page 157: ...134 CHAPTER 10 A D CONVERTER MEMO...
Page 193: ...170 CHAPTER 11 SERIAL INTERFACE CHANNEL 2 MEMO...
Page 253: ...230 CHAPTER 16 INSTRUCTION SET MEMO...