HMS81C43xx / GMS87C4060
97
November 2001 ver 1.2
2. Register / Memory Operation
3. 16-Bit Operation
NO.
MNENONIC
OP
CODE
BYTE
NO.
CYCLE
NO
OPERATION
FLAG
NVGBHIZC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
LDA #imm
LDA dp
LDA dp + X
LDA !abs
LDA !abs + Y
LDA [dp + X]
LDA [dp]+Y
LDA {X}
LDA {X}+
LDM dp,#imm
LDX #imm
LDX dp
LDX dp + Y
LDX !abs
LDY #imm
LDY dp
LDY dp + Y
LDY !abs
STA dp
STA dp + X
STA !abs
STA !abs + Y
STA [dp + X]
STA [dp] + Y
STA {X}
STA {X}+
STX dp
STX dp + Y
STX !abs
STY dp
STY dp + X
STY !abs
TAX
TAY
TSPX
TXA
TXSP
TYA
XAX
XAY
XMA dp
XMA dp + X
XMA {X}
XYX
C4
C5
C6
C7
D5
D6
D7
D4
DB
E4
1E
CC
CD
DC
3E
C9
D9
D8
E5
E6
E7
F5
F6
F7
F4
FB
EC
ED
FC
E9
F9
F8
E8
9F
AE
C8
8E
BF
EE
DE
BC
AD
BB
FE
2
2
2
3
3
2
2
1
1
3
2
2
2
3
2
2
2
3
2
2
3
3
2
2
1
1
2
2
3
2
2
3
1
1
1
1
1
1
1
1
2
2
1
1
2
3
4
4
5
6
6
3
4
5
2
3
4
4
2
3
4
4
3
4
4
5
6
6
3
4
4
5
5
4
5
5
2
2
2
2
2
2
4
4
5
6
5
4
Load accumulator
A
←
(M)
N - - - - - Z -
X-register auto-increment : A
←
(M), X
←
X + 1
Load memory with immediate data : (M)
←
imm
Load X-register
X
←
(M)
- - - - - - - -
N - - - - - Z -
Load X-register
Y
←
(M)
N - - - - - Z -
Store accumulator contents in memory
(M)
←
A
- - - - - - - -
X-register auto-increment : (M)
←
A, X
←
X + 1
Store X-register contents in memory
(M)
←
X
- - - - - - - -
Store Y-register contents in memory
(M)
←
Y
- - - - - - - -
Transfer accumulator contents to X-register : X
←
A
Transfer accumulator contents to Y-register : Y
←
A
Transfer stack-pointer contents to X-register : X
←
SP
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
Exchange memory contents with accumulator
(M)
f
A
N - - - - - Z -
N - - - - - Z -
N - - - - - Z -
N - - - - - Z -
N - - - - - Z -
N - - - - - Z -
- - - - - - - -
- - - - - - - -
N - - - - - Z -
Exchange X-register contents with Y-register : X
f
Y
- - - - - - - -
NO.
MNENONIC
OP
CODE
BYTE
NO.
CYCLE
NO
OPERATION
FLAG
NVGBHIZC
1
2
ADDW dp
CMPW dp
1D
5D
2
2
5
4
16-bits add without carry : YA
←
YA + (dp+1)(dp)
Compare YA contents with memory pair contents :
YA - (dp+1)(dp)
Decrement memory pair : (dp+1)(dp)
←
{(dp+1)(dp)} - 1
Increment memory pair : (dp+1)(dp)
←
{(dp+1)(dp)} + 1
NV - - H - ZC
N - - - - - ZC
3
4
DECW dp
INCW dp
BD
9D
2
2
6
6
N - - - - - Z -
N - - - - - Z -