![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205071.webp)
Appendix
67
NO.
MNEMONIC
OP
CODE
BYTE
NO
CYCLE
NO
OPERATION
FLAG
NVGBHIZC
40
CALL !abs
3B
3
8
Subroutine call
41
CALL [dp]
5F
2
8
M( SP)
( PC
H
), SP
SP - 1, M( SP)
( PC
L
), SP
SP
- 1,
if !abs, PC
abs ; if [dp], PC
L
( dp ), PC
H
( dp+1 ) .
--------
42
CBNE dp,rel
FD
3
5/7
Compare and branch if not equal :
--------
43
CBNE dp+X,rel
8D
3
6/8
if ( A )
( M ) , then PC
( PC )
rel.
44
CLR1 dp.bit
y1
2
4
Clear bit : ( M.bit )
“
0
”
--------
45
CLRA1 A.bit
2B
2
2
Clear A bit : ( A.bit )
“
0
”
--------
46
CLRC
20
1
2
Clear C-flag : C
“
0
”
-------0
47
CLRG
40
1
2
Clear G-flag : G
“
0
”
--0-----
48
CLRV
80
1
2
Clear V-flag : V
“
0
”
-0--0---
49
CMP #imm
44
2
2
Compare accumulator contents with memory contents
50
CMP dp
45
2
3
( A )
( M )
51
CMP dp + X
46
2
4
52
CMP !abs
47
3
4
N-----ZC
53
CMP !abs + Y
55
3
5
54
CMP [ dp + X ]
56
2
6
55
CMP [ dp ] + Y
57
2
6
56
CMP { X }
54
1
3
57
CMPW dp
5D
2
4
Compare YA contents with memory pair contents :
(YA)
(dp+1)(dp)
N-----ZC
58
CMPX #imm
5E
2
2
Compare X contents with memory contents
59
CMPX dp
6C
2
3
( X )
( M )
N-----ZC
60
CMPX !abs
7C
3
4
61
CMPY #imm
7E
2
2
Compare Y contents with memory contents
62
CMPY dp
8C
2
3
( Y )
( M )
N-----ZC
63
CMPY !abs
9C
3
4
64
COM dp
2C
2
4
1
’
s Complement : ( dp )
( dp )
N-----Z-
65
DAA
DF
1
3
Decimal adjust for addition
N-----ZC
66
DAS
CF
1
3
Decimal adjust for subtraction
N-----ZC
67
DBNE dp,rel
AC
3
5/7
Decrement and branch if not equal :
--------
68
DBNE Y,rel
7B
2
4/6
if ( M )
0 , then PC
( PC )
rel.
69
DEC A
A8
1
2
Decrement
70
DEC dp
A9
2
4
M
( M )
1
71
DEC dp + X
B9
2
5
N-----Z-
72
DEC !abs
B8
3
5
73
DEC X
AF
1
2
74
DEC Y
BE
1
2
75
DECW dp
BD
2
6
Decrement memory pair : ( dp+1)( dp)
( dp+1) ( dp)
1
N-----Z-
76
DI
60
1
3
Disable interrupts : I
“
0
”
-----0--
77
DIV
9B
1
12
Divide : YA / A
Q: A, R: Y
NV--H-Z-
78
EI
E0
1
3
Enable interrupts : I
“
1
”
-----1--