KS57C2308/P2308/C2316/P2316ADDRESSING MODES

8-BIT ADDRESSING

Table 3-4. 8-Bit Direct and Indirect RAM Addressing

Instruction

Addressing Mode

EMB Flag

Addressable

Memory

Hardware I/O

Notation

Description

Setting

Area

Bank

Mapping

 

 

 

 

 

 

 

 

 

000H–07FH

Bank 0

 

 

 

 

 

 

DA

Direct: 8-bit address indicated

0

F80H–FFFH

Bank 15

All 8-bit

 

by the RAM address (DA =

 

 

 

addressable

 

even number) and memory

 

 

 

peripherals

 

bank selection

 

 

 

 

 

 

 

 

 

 

 

 

1

000H–FFFH

SMB = 0, 1,

(SMB = 15)

 

 

 

 

15

 

 

 

 

 

 

 

@HL

Indirect: the 8-bit address indi-

0

000H–0FFH

Bank 0

 

cated by the memory bank

 

 

 

 

 

selection and register HL; (the

 

 

 

 

 

4-bit L register value must be

 

 

 

 

 

an even number)

 

 

 

 

 

 

 

 

 

 

 

 

1

000H–FFFH

SMB = 0, 1,

All 8-bit

 

 

 

 

15

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

3-11

Page 41
Image 41
Samsung KS57C2308 manual Smb Adata,Ea, Bdata,Ea, Bdata EQU 8EH SMB EA,P4