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
0F80H–FFFH Bank 15 All 8-bit
addressable
peripherals
1000H–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)
0000H–0FFH Bank 0
1000H–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