Hyundai GMS800 Instruction Manual page 13

Gms800 series 8-bit single-chip microcomputers
Table of Contents

Advertisement


dp Indirect Addressing Mode
The effective address is the contents of memory pair((dp+1)(dp)) in direct page.
OP CODE
Operand
Memory
Example) ( G=0 )
3F 35

X-register Indexed Indirect Addressing Mode
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
Operand
A,Memory
Example)
16 25

[ dp ]
[dp]
JMP
CALL
JMP [35H]
[dp+X]
ADC
AND
CMP
( G=0, X=10
)
h
ADC [25H+X]
Instructions

PC
C005
h

[ dp+X ]
Instructions
EOR
LDA
OR
C005
h

A
A + data + C
Addressing Mode
MEMORY
000
h
0 Page
data1 ( 05 )
035
h
data2 ( C0 )
036
h
0FF
h
0FF
h
100
h
1 Page
NEXT
C005
h
Op code ( 3F )
Operand ( 35 )
SBC
STA
MEMORY
000
h
0 Page
data1 ( 05 )
035
h
data2 ( C0 )
036
h
0FF
h
0FF
h
100
h
1 Page
Data
C005
h
Opcode ( 16 )
= 35
Operand ( 25 )
+
X ( 10 )
h
9

Advertisement

Table of Contents
loading

Table of Contents