2 MEMORY AND OPERATIONS
2.2 Data Memory
The data memory area comprises 4,096 4-bit words. The RAM, timer, I/O and other peripheral circuits are
mapped into this memory according to the designer's specifications. Figure 2.2.1 shows the data memory
configuration.
RP
Page 0
only
Page 0
Step 0
Step 1
SP
Step 15
Page 0
only
Step 254
Step 255
2.2.1 Data memory addressing
The following registers and pointers, which are described in detail below, are used to address the data
memory.
• Index register IX
Index register IX has a 4-bit page part (XP) and an 8-
bit register (XHL), and can address any location in
the data memory. See Figure 2.2.1.1.
XHL is divided into two 4-bit groups: the four high-
order bits (XH) and the four low-order bits (XL), and
can address any location within a page.
–
MX is the data memory location whose address is specified by IX.
–
M(X) refers to the contents of the data memory location whose address is specified by IX.
–
XHL can be incremented by 1 or 2 using a post-increment instruction (LDPX, ACPX, SCPX, LBPX or
RETD). An overflow occurring in XHL does not affect the flags.
8
Page 3
Page 2
Page 1
4-bit data
Fig. 2.2.1 Data memory configuration
Table 2.2.1.1 Registers and pointer for data memory addressing
Register/Pointer
Index Register X
Index Register Y
Stack Pointer
Register
Page 15
Page 14
Step 0
Step 1
Step 254
Step 255
XP or YP
(page specification)
Mnemonic
Size (bits)
IX
12
IY
12
SP
8
RP
4
MSB
4
X
Fig. 2.2.1.1 The configuration of the index register IX
EPSON
XHL or YHL
(within page)
Memory or I/O
Register area
4
4
X
X
P
H
L
X
HL
IX
S1C6200/6200A CORE CPU MANUAL
LSB