Samsung KS57C2308 Manual page 41

Single-chip cmos microcontroller
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents