KS57C2308/P2308/C2316/P2316
ADDRESSING MODES
3-11
8-BIT ADDRESSING
Table 3-4. 8-Bit Direct and Indirect RAM Addressing
Instruction
Notation
Addressing Mode
Description
EMB Flag
Setting
Addressable
Area
Memory
Bank
Hardware I/O
Mapping
000H–07FH
Bank 0
–
DA
Direct: 8-bit address indicated
by the RAM address (
DA =
even number
) and memory
bank selection
0
F80H–FFFH
Bank 15
All 8-bit
addressable
peripherals
1
000H–FFFH
SMB = 0, 1,
15
(SMB = 15)
@HL
Indirect: the 8-bit address indi-
cated by the memory bank
selection and register HL; (the
4-bit L register value must be
an even number)
0
000H–0FFH
Bank 0
–
1
000H–FFFH
SMB = 0, 1,
15
All 8-bit
addressable
peripherals
(SMB = 15)
+
+
PROGRAMMING TIP — 8-Bit Addressing Modes
8-Bit Direct Addressing
1.
If EMB = "0":
ADATA EQU
46H
BDATA EQU
8EH
SMB
15
; Non-essential instruction, since EMB = "0"
LD
EA,P4
; E
←
(P5), A
←
(P4)
SMB
0
LD
ADATA,EA
; (046H)
←
A, (047H)
←
E
LD
BDATA,EA
; (F8EH)
←
A, (F8FH)
←
E
2.
If EMB = "1":
ADATA EQU
46H
BDATA EQU
8EH
SMB
15
LD
EA,P4
; E
←
(P5), A
←
(P4)
SMB
0
LD
ADATA,EA
; (046H)
←
A, (047H)
←
E
LD
BDATA,EA
; (08EH)
←
A, (08FH)
←
E
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: ......