General-Purpose Registers; Configuration Of General-Purpose Register Area; Configuration Of Register Pair - NEC PD754144 User Manual

4-bit single-chip microcontrollers
Table of Contents

Advertisement

4.5 General-Purpose Registers ... 8 × 4 bits × 4 banks
General-purpose registers are mapped to the specific addresses of the data memory. Four banks of registers,
with each bank consisting of eight 4-bit registers (B, C, D, E, H, L, X, and A), are available.
The register bank (RB) that becomes valid when an instruction is executed is determined by the following
expression.
.
RB = RBE RBS (RBS = 0 to 3)
Each general-purpose register is manipulated in 4-bit units. Moreover, two registers can be used in pairs, such
as BC, DE, HL, and XA, and manipulated in 8-bit units. Register pairs DE, HL, and DL are also used as data pointers.
When registers are manipulated in 8-bit units, the register pairs of the register bank (RB) with bit 0 inverted (0
↔ 1, 2 ↔ 3), BC', DE', HL', and XA', can also be used in addition to BC, DE, HL, and XA (refer to 3.2 Bank
Configuration of General-Purpose Registers).
The general-purpose register area can be addressed and accessed as an ordinary RAM area, regardless of
whether the registers in this area are used or not.
Figure 4-5. Configuration of General-Purpose Register Area
Address
Data memory
3
000H
A register
001H
X register
002H
L register
003H
H register
004H
E register
005H
D register
006H
C register
007H
B register
008H
.
.
Same configura-
.
tion as bank 0
.
00FH
010H
.
.
.
Same configura-
.
tion as bank 0
.
017H
018H
.
.
Same configura-
.
.
tion as bank 0
.
01FH
CHAPTER 4 INTERNAL CPU FUNCTION
3
0
3
3
Register bank 0
3
Register bank 1
Register bank 2
Register bank 3
User's Manual U10676EJ3V0UM
Figure 4-6. Configuration of Register Pair
0
3
B
0
3
D
0
3
H
0
3
X
0
C
0
E
One bank
0
L
0
A
69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents