2 general-purpose registers – NEC switch User Manual

Page 43

Advertising
background image

CHAPTER 3 CPU ARCHITECTURE

User’s Manual U12978EJ3V0UD

43

3.2.2 General-purpose registers

The general-purpose registers consist of eight 8-bit registers (X, A, C, B, E, D, L, and H).

In addition that each register can be used as an 8-bit register, two 8-bit registers in pairs can be used as a 16-bit

register (AX, BC, DE, and HL).

They can be described in terms of functional names (X, A, C, B, E, D, L, H, AX, BC, DE, and HL) and absolute

names (R0 to R7 and RP0 to RP3).

Figure 3-10. Configuration of General-Purpose Registers

(a) Absolute names

R0

15

0

7

0

16-bit processing

8-bit processing

RP3

RP2

RP1

RP0

R1

R2

R3

R4

R5

R6

R7

(b) Functional names

X

15

0

7

0

16-bit processing

8-bit processing

HL

DE

BC

AX

A

C

B

E

D

L

H

Advertising