General Registers; General Register Configuration - NEC PD78076 User Manual

Pd78078 series; pd78078y series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

5.2.2 General registers

A general register is mapped at particular addresses (FEE0H to FEFFH) of the data memory. It consists of 4 banks,
each bank consisting of eight 8-bit registers (X, A, C, B, E, D, L, and H).
Each register can also be used as an 8-bit register. Two 8-bit registers can be used in pairs as a 16-bit register
(AX, BC, DE, and HL).
They can be described in terms of function names (X, A, C, B, E, D, L, H, AX, BC, DE, and HL) and absolute names
(R0 to R7 and RP0 to RP3).
Register banks to be used for instruction execution are set with the CPU control instruction (SEL RBn). Because
of the 4-register bank configuration, an efficient program can be created by switching between a register for normal
processing and a register for interruption for each bank.
FEFFH
BANK0
FEF8H
BANK1
FEE0H
BANK2
FEE8H
BANK3
FEE0H
FEFFH
BANK0
FEF8H
BANK1
FEF0H
BANK2
FEE8H
BANK3
FEE0H
CHAPTER 5 CPU ARCHITECTURE
Figure 5-12. General Register Configuration
(a) Absolute Name
16-Bit Processing
RP3
RP2
RP1
RP0
15
(b) Function Name
16-Bit Processing
HL
DE
BC
AX
15
8-Bit Processing
0
7
8-Bit Processing
0
7
R7
R6
R5
R4
R3
R2
R1
R0
0
H
L
D
E
B
C
A
X
0
113

Advertisement

Table of Contents
loading

Table of Contents