Hyundai GMS800 Instruction Manual page 71

Gms800 series 8-bit single-chip microcomputers
Table of Contents

Advertisement

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


( PC
), SP
SP - 1, M( SP)
H

abs ; if [dp], PC


( M ) , then PC

"0"

"0"

"0"

"0"

"0"

( M )

(dp+1)(dp)

( M )

( M )
 


0 , then PC
( PC )


( M )
1

"0"

Q: A, R: Y

"1"


( PC
), SP
SP
L


( dp ), PC
( dp+1 ) .
L
H

( PC )
rel.
( dp )

rel.


( dp+1) ( dp)
1
Appendix
FLAG
NVGBHIZC
--------
--------
--------
--------
-------0
--0-----
-0--0---
N-----ZC
N-----ZC
N-----ZC
N-----ZC
N-----Z-
N-----ZC
N-----ZC
--------
N-----Z-
N-----Z-
-----0--
NV--H-Z-
-----1--
67

Advertisement

Table of Contents
loading

Table of Contents