
HYUNDAI MicroElectonics
4
1.3. Direct Page Addressing Mode
dp
The address field of the instruction gives the address of the operand in memory. The 2nd byte of instruction
is the offset from the start address of direct page. Direct Page(dp) is determined by G-flag.
G=0 0-Page ( !0000H ~ !00FFH)
G=1 1-Page ( !0100H ~ !01FFH)
OP CODE
dp
Operand
Instructions
A
ADC
AND
CMP
LDA
EOR
OR
SBC
X
LDX
CMPX
Y
LDY
CMPY
Memory
ASL
COM
DEC
INC
LSR
ROL
ROR
TST
Example)
( G=1 )
05 35
ADC 35H
Example)
( G=1 )
89 35
INC 35H
Op code ( 05 )
data
Operand ( 35 )
MEMORY
A
←
A+data+C
0 Page
000
h
0FF
h
100
h
135
h
1FF
h
0 Page
1 Page
Op code ( 89 )
data
Operand ( 35 )
MEMORY
data
←
data + 1
0 Page
000
h
0FF
h
100
h
135
h
1FF
h
0 Page
1 Page