Addressing Mode
9
dp Indirect Addressing Mode
[ dp ]
The effective address is the contents of memory pair((dp+1)(dp)) in direct page.
OP CODE
[dp]
Operand
Instructions
Memory
JMP
CALL
Example) ( G=0 )
3F 35
JMP [35H]
X-register Indexed Indirect Addressing Mode
[ dp+X ]
The effective address is the contents of memory pair((dp+X+1)(dp+X)) in direct page, which is determined
by adding the address of operand and the contents of X-register.
OP CODE
[dp+X]
Operand
Instructions
A,Memory
ADC
AND
CMP
EOR
LDA
OR
SBC
STA
Example)
( G=0, X=10
h
)
16 25
ADC [25H+X]
0FF
h
0FF
h
PC
C005
h
Op code ( 3F )
Operand ( 35 )
MEMORY
000
h
100
h
data1 ( 05 )
035
h
C005
h
0 Page
1 Page
data2 ( C0 )
NEXT
036
h
+
0FF
h
0FF
h
C005
h
A
A + data + C
Opcode ( 16 )
Operand ( 25 )
MEMORY
000
h
100
h
C005
h
data1 ( 05 )
035
h
= 35
h
0 Page
1 Page
data2 ( C0 )
Data
036
h
X ( 10 )
Содержание GMS800
Страница 1: ...NOV 1996 Rev 1 0 8 BIT SINGLE CHIP MICROCOMPUTERS GMS800 Series Instruction Manual ...
Страница 4: ......
Страница 20: ...HYUNDAI MicroElectonics 16 ...
Страница 68: ...HYUNDAI MicroElectonics 64 ...