Addressing Mode
5
1.4. Absolute Addressing Mode
!abs
The address field of the instruction gives the address of the operand in memory. 2nd byte instruction is the
lower address and 3rd byte is the upper address. The disadvantage of absolute addressing mode is to
require 3-byte instruction.
OP CODE
Low Address
Upper Address
Operand
Instructions
A
ADC
AND
CMP
LDA
EOR
OR
SBC
STA
X
CMPX
LDX
STX
Y
CMPY
LDY
STY
PSW
JMP
CALL
Memory
ASL
BIT
DEC
INC
LSR
ROL
ROR
TCLR1
TSET1
Example)
07 35 D0
ADC !0D035H
Example)
( G=1 )
98 35 01
INC !0135H
Op code ( 07 )
Operand( 35 )
data
Operand( D0 )
MEMORY
A
←
A+data+C
D035
h
Op code ( 98 )
data
Operand ( 35 )
Operand ( 01 )
MEMORY
data
←
data + 1
0 Page
000
h
0FF
h
100
h
135
h
1FF
h
0 Page
1 Page
Содержание 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 ...