![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205070.webp)
HYUNDAI MicroElectonics
66
3.2. Alphabetic Order Table of Instruction
NO.
MNEMONIC
OP
CODE
BYTE
NO
CYCLE
NO
OPERATION
FLAG
NVGBHIZC
1
ADC
#imm
04
2
2
Add with carry.
2
ADC dp
05
2
3
A
( A )
( M )
C
3
ADC dp + X
06
2
4
4
ADC !abs
07
3
4
NV--H--ZC
5
ADC !abs + Y
15
3
5
6
ADC [ dp + X ]
16
2
6
7
ADC [ dp ] + Y
17
2
6
8
ADC { X }
14
1
3
9
ADDW dp
1D
2
5
16-Bits add without carry : YA
( YA )
( dp +1 ) ( dp )
NV--H-ZC
10
AND #imm
84
2
2
Logical AND
11
AND dp
85
2
3
A
( A )
( M )
12
AND dp + X
86
2
4
13
AND !abs
87
3
4
N-----Z-
14
AND !abs + Y
95
3
5
15
AND [ dp + X ]
96
2
6
16
AND [ dp ] + Y
97
2
6
17
AND { X }
94
1
3
18
AND1 M.bit
8B
3
4
Bit AND C-flag : C
( C )
( M .bit )
-------C
19
AND1B M.bit
8B
3
4
Bit AND C-flag and NOT : C
( C )
~( M .bit )
-------C
20
ASL A
08
1
2
Arithmetic shift left
21
ASL dp
09
2
4
C 7 6 5 4 3 2 1 0
N-----ZC
22
ASL dp + X
19
2
5
23
ASL !abs
18
3
5
24
BBC A.bit,rel
y2
2
4/6
Branch if bit clear :
--------
25
BBC dp.bit,rel
y3
3
5/7
if ( bit )
0 , then PC
( PC )
rel
26
BBS A.bit,rel
x2
2
4/6
Branch if bit set :
--------
27
BBS dp.bit,rel
x3
3
5/7
if ( bit )
1 , then PC
( PC )
rel
28
BCC rel
50
2
2/4
Branch if carry bit clear :
if ( C )
0 , then PC
( PC )
rel
--------
29
BCS rel
D0
2
2/4
Branch if carry bit set : if ( C )
1 , then PC
( PC )
rel
--------
30
BEQ rel
D0
2
2/4
Branch if equal : if ( Z )
1 , then PC
( PC )
rel
--------
31
BIT dp
0C
2
4
Bit test A with memory :
MM----Z-
32
BIT !abs
1C
3
5
Z
( A )
( M ) , N
( M
7
) , V
( M
6
)
33
BMI rel
90
2
2/4
Branch if minus : if ( N )
1 , then PC
( PC )
rel
--------
34
BNE rel
70
2
2/4
Branch if not equal : if ( Z )
0 , then
--------
35
BPL rel
10
2
2/4
Branch if minus : if ( N )
0 , then PC
( PC )
rel
--------
36
BRA rel
2F
2
4
Branch always : PC
( PC )
rel
--------
37
BRK
0F
1
8
Software interrupt :
B
”
1
”
, M( SP)
( PC
H
), SP
SP - 1,
M( s )
( PC
L
), SP
SP - 1, M( SP)
( PSW ),
SP
SP -1, PC
L
( 0FFDE
H
) , PC
H
( 0FFDF
H
) .
---1-0--
38
BVC rel
30
2
2/4
Branch if overflow bit clear :
if (V)
0 , then PC
( PC)
rel
--------
39
BVS rel
B0
2
2/4
Branch if overflow bit set :
if (V)
1 , then PC
( PC )
rel
--------
”
0