1.2. Immediate Addressing Mode
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
Operand
A
X
Y
Example)
04 35
Memory(dp)
OP CODE
Operand
Memory
Example)
E4 55 35
#imm
ADC
AND
CMP
CMPX
LDX
CMPY
LDY
ADC #35H
#imm
dp
LDM
(G=1)
LDM 35H,#55H
#imm
Instructions
OR
SBC
EOR
A ← A+35
+C
h
Instructions
data ← 55
h
immediate data
Addressing Mode
LDA
MEMORY
Op code ( 04 )
Operand ( 35 )
MEMORY
000
h
0 Page
0 Page
0FF
h
100
h
1 Page
data
135
h
1FF
h
Opcode ( E4 )
Operand( 55 )
Operand ( 35 )
3