Samsung KS57C2308 Manual page 36

Single-chip cmos microcontroller
Table of Contents

Advertisement

ADDRESSING MODES
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
Operand
Notation
DA.b
Direct: a bit is indicated by the
RAM address (DA), memory
bank selection, and a the
specified bit number (b).
mema.b
Direct: a bit is indicated by the
addressable area (mema) and
a the bit number (b).
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).
@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).
:
NOTE
"x" means don't care.
3-6
Table 3-2. 1-Bit Direct and Indirect RAM Addressing
Addressing Mode
Description
EMB Flag
Addressable
Setting
Area
000H–07FH
0
F80H–FFFH
1
000H–FFFH
x
FB0H–FBFH
FF0H–FFFH
x
FC0H–FFFH Bank 15
0
000H–0FFH
1
000H–FFFH
KS57C2308/P2308/C2316/P2316
Memory
Hardware I/O
Bank
Mapping
Bank 0
Bank 15
All 1-bit
addressable
peripherals
(SMB = 15)
SMB = 0, 1,
15
Bank 15
IS0, IS1, EMB,
ERB, IEx, IRQx,
Pn.n
BSCn.x
Pn.n
Bank 0
SMB = 0, 1,15 All 1-bit
addressable
peripherals
(SMB = 15)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents