![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205007.webp)
Addressing Mode
3
1.2. Immediate Addressing Mode
#imm
The operand is specified in the instruction itself. In other word, an immediate mode instruction has an
operand field rather than an address field. Immediate mode instructions are useful for Initializing registers to
a constant value. Immediate data must be 8-bit data.
Register ( A,X,Y )
OP CODE
#imm
Operand
Instructions
A
ADC
AND
CMP
OR
SBC
EOR
LDA
X
CMPX
LDX
Y
CMPY
LDY
Example)
04 35
ADC #35H
Memory(dp)
OP CODE
#imm
dp
Operand
Instructions
Memory
LDM
Example)
(G=1)
E4 55 35
LDM 35H,#55H
Op code ( 04 )
Operand ( 35 )
MEMORY
A
←
A+35
h
+C
Operand( 55 )
Opcode ( E4 )
data
Operand ( 35 )
MEMORY
data
←
55
h
0 Page
000
h
0FF
h
100
h
135
h
1FF
h
0 Page
1 Page
immediate data