ADDRESSING MODES
KS57C2308/P2308/C2316/P2316
3-6
DIRECT AND INDIRECT ADDRESSING
1-bit, 4-bit, and 8-bit data stored in data memory locations can be addressed directly using a specific register or
bit address as the instruction operand.
Indirect addressing specifies a memory location that contains the required direct address. The KS57 instruction
set supports 1-bit, 4-bit, and 8-bit indirect addressing. For 8-bit indirect addressing, an even-numbered RAM
address must always be used as the instruction operand.
1-BIT ADDRESSING
Table 3-2. 1-Bit Direct and Indirect RAM Addressing
Operand
Notation
Addressing Mode
Description
EMB Flag
Setting
Addressable
Area
Memory
Bank
Hardware I/O
Mapping
000H–07FH
Bank 0
–
DA.b
Direct: a bit is indicated by the
RAM address (DA), memory
bank selection, and a the
specified bit number (b).
0
F80H–FFFH
Bank 15
All 1-bit
addressable
peripherals
(SMB = 15)
1
000H–FFFH
SMB = 0, 1,
15
mema.b
Direct: a bit is indicated by the
addressable area (mema) and
a the bit number (b).
x
FB0H–FBFH
FF0H–FFFH
Bank 15
IS0, IS1, EMB,
ERB, IEx, IRQx,
Pn.n
memb.@L
Indirect: a bit is indicated by
the addressable area
(memb.7–2 (upper) + L.3–2
(lower)) and the bit number
(L.1–0).
x
FC0H–FFFH
Bank 15
BSCn.x
Pn.n
@H + DA.b
Indirect: a bit is indicated by
the addressable area (H
(upper) + DA.3–0 (lower)) ,
memory bank selection, and
the bit number (b).
0
000H–0FFH
Bank 0
–
1
000H–FFFH
SMB = 0, 1,15
All 1-bit
addressable
peripherals
(SMB = 15)
NOTE
:
“x” means don’t care.
Summary of Contents for KS57C2308
Page 30: ...ADDRESS SPACES KS57C2308 P2308 C2316 P2316 2 22 NOTES ...
Page 168: ...SAM47 INSTRUCTION SET KS57C2308 P2308 C2316 P2316 5 94 NOTES ...
Page 170: ......
Page 206: ...POWER DOWN KS57C2308 P2308 C2316 P2316 8 8 NOTES ...
Page 210: ...RESET KS57C2308 P2308 C2316 P2316 9 4 NOTES ...
Page 222: ...I O PORTS KS57C2308 P2308 C2316 P2316 10 12 NOTES ...
Page 272: ...LCD CONTROLLER DRIVER KS57C2308 P2308 C2316 P2316 12 24 NOTES ...
Page 280: ...SERIAL I O INTERFACE KS57C2308 P2308 C2316 P2316 13 8 NOTES ...
Page 294: ...MECHANICAL DATA KS57C2308 P2308 C2316 P2316 15 2 NOTES ...
Page 310: ...KS57P2308 P2316 OTP KS57C2308 P2308 C2316 P2316 16 16 NOTES ...
Page 318: ......
Page 320: ......
Page 322: ......
Page 325: ......
Page 327: ......