2.6 Register
2
The F
MC-16LX has two types of registers: dedicated registers in the CPU and general-purpose registers in
the internal RAM.
n Dedicated registers and general-purpose register
The dedicated registers are dedicated hardware in the CPU, and the use is limited by the CPU architecture.
The general-purpose register coexists with RAM in the CPU address space. The general-purpose register is
the same as the dedicated registers in that it can be accessed without address specification, but like ordinary
memory, it can be specified by the user. Figure 2.11 shows the allocation of the dedicated and the general-
purpose registers.
Dedicated register
Accumulator
User stack pointer
System stack pointer
Processor status
Program counter
Direct page register
Program bank register
Data bank register
User stack bank register
System stack bank register
Additional data bank register
CPU
Fig. 2.11 Dedicated and General-purpose Registers
CPU
RAM
General-purpose register
2-13
RAM