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