HMS81C43xx / GMS87C4060
94
November 2001 ver 1.2
148
149
150
151
152
153
154
ROL A
ROL dp
ROL dp + X
ROL !abs
ROR A
ROR dp
ROR dp + X
28
29
39
38
68
69
79
1
2
2
3
1
2
2
2
4
5
5
2
4
5
Rotate left through carry
N - - - - - ZC
Rotate right through carry
N - - - - - ZC
155
ROR !abs
78
3
5
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
SBC #imm
SBC dp
SBC dp + X
SBC !abs
SBC !abs + Y
SBC [dp + X]
SBC [dp] + Y
SBC {X}
SET1 dp.bit
SETA1 A.bit
SETC
SETG
STA dp
STA dp + X
STA !abs
STA !abs + Y
STA [dp + X]
STA [dp] + Y
STA {X}
STA {X}+
STC M.bit
STX dp
STX dp + Y
STX !abs
STY dp
STY dp + X
STY !abs
STYA dp
SUBW dp
TAX
TAY
TCALL n
24
25
26
27
35
36
37
34
x1
0B
A0
C0
E5
E6
E7
F5
F6
F7
F4
FB
EB
EC
ED
FC
E9
F9
F8
DD
3D
E8
9F
nA
2
2
2
3
3
2
2
1
2
2
1
1
2
2
3
3
2
2
1
1
3
2
2
3
2
2
3
2
2
1
1
1
2
3
4
4
5
6
6
3
4
2
2
2
3
4
4
5
6
6
3
4
6
4
5
5
4
5
5
5
5
2
2
8
Substract with carry
A
←
A - (M) - ~(C)
NV - - HZC
Set bit : (M.bit)
←
“1”
Set A.bit : (A.bit)
←
“1”
Set C-flag : C
←
“1”
Set G-flag : G
←
“1”
Store accumulator contents in memory
(M)
←
A
- - - - - - - -
- - - - - - - -
- - - - - - - 1
- - 1 - - - - -
- - - - - - - -
X-register auto-increment : (M)
←
A, X
←
X + 1
Store C-flag : (M.bit)
←
C
Store X-register contents in memory
(M)
←
X
- - - - - - - -
- - - - - - - -
Store Y-register contents in memory
(M)
←
Y
- - - - - - - -
Store YA : (dp+1)(dp)
←
YA
16-bits substract without carry : YA
←
YA - (dp+1)(dp)
Transfer accumulator contents to X-register : X
←
A
Transfer accumulator contents to Y-register : Y
←
A
Table call :
M(SP)
←
(PC
H
), SP
←
SP -1,
M(SP)
←
(PC
L
), SP
←
SP -1
PC
L
←
(Table vector L), PC
H
←
(Table vector H)
Test and clear bits with A :
A - (M), (M)
←
(M) ^ ~(A)
Test and set bits with A :
A - (M), (M)
←
(M) V (A)
Transfer stack-pointer contents to X-register : X
←
SP
Test memory contents for negative or zero : (dp) - 00
H
Transfer X-register contents to accumulator : A
←
X
Transfer X-register contents to stack-pointer : SP
←
X
Transfer Y-register contents to accumulator : A
←
Y
Exchange X-register contents with accumulator : X
f
A
Exchange Y-register contents with accumulator : Y
f
A
- - - - - - - -
NV - - H - ZC
N - - - - - Z -
N - - - - - Z -
- - - - - - - -
188
TCLR1 !abs
5C
3
6
N - - - - - Z -
189
TSET1 !abs
3C
3
6
N - - - - - Z -
190
191
192
193
194
195
196
TSPX
TST dp
TXA
TXSP
TYA
XAX
XAY
AE
4C
C8
8E
BF
EE
DE
1
2
1
1
1
1
1
2
3
2
2
2
4
4
N - - - - - Z -
N - - - - - Z -
N - - - - - Z -
N - - - - - Z -
N - - - - - Z -
- - - - - - - -
- - - - - - - -
NO.
MNENONIC
OP
CODE
BYTE
NO.
CYCLE
NO
OPERATION
FLAG
NVGBHIZC
C 7 6 5 4 3 2 1 0
← ← ← ← ← ← ← ← ←
7 6 5 4 3 2 1 0 C
→ → → → → → → → →