Central Processor Unit (CPU)
MC68HC908QL4 MC68HC908QL3 MC68HC908QL2 Data Sheet, Rev. 4
78
Freescale Semiconductor
CLR
opr
CLRA
CLRX
CLRH
CLR
opr
,X
CLR ,X
CLR
opr
,SP
CMP #
opr
CMP
opr
CMP
opr
CMP
opr
,X
CMP
opr
,X
CMP ,X
CMP
opr
,SP
CMP
opr
,SP
COM
opr
COMA
COMX
COM
opr
,X
COM ,X
COM
opr
,SP
CPHX #
opr
CPHX
opr
CPX #
opr
CPX
opr
CPX
opr
CPX ,X
CPX
opr
,X
CPX
opr
,X
CPX
opr
,SP
CPX
opr
,SP
DAA
Clear
M
←
$00
A
←
$00
X
←
$00
H
←
$00
M
←
$00
M
←
$00
M
←
$00
0 – – 0 1 –
DIR
INH
INH
INH
IX1
IX
SP1
IMM
DIR
EXT
IX2
IX1
IX
SP1
SP2
DIR
INH
INH
IX1
IX
SP1
IMM
DIR
IMM
DIR
EXT
IX2
IX1
IX
SP1
SP2
INH
3F
4F
5F
8C
6F
7F
9E6F
A1
B1
C1
D1
E1
F1
9EE1
9ED1
33
43
53
63
73
9E63
65
75
A3
B3
C3
D3
E3
F3
9EE3
9ED3
72
dd
ff
ff
ii
dd
hh ll
ee ff
ff
3
1
1
1
3
2
4
2
3
4
4
3
2
4
5
4
1
1
4
3
5
3
4
2
3
4
4
3
2
4
5
2
Compare A with M
(A) – (M)
– –
ff
ee ff
dd
Complement (One’s Complement)
M
←
(M) = $FF – (M)
A
←
(A) = $FF – (M)
X
←
(X) = $FF – (M)
M
←
(M) = $FF – (M)
M
←
(M) = $FF – (M)
M
←
(M) = $FF – (M)
0 – –
1
ff
ff
ii ii+1
dd
ii
dd
hh ll
ee ff
ff
Compare H:X with M
(H:X) – (M:M + 1)
– –
Compare X with M
(X) – (M)
– –
ff
ee ff
Decimal Adjust A
(A)
10
U – –
DBNZ
opr,rel
DBNZA
rel
DBNZX
rel
DBNZ
opr,
X
,rel
DBNZ X
,rel
DBNZ
opr,
SP
,rel
DEC
opr
DECA
DECX
DEC
opr
,X
DEC ,X
DEC
opr
,SP
Decrement and Branch if Not Zero
A
←
(A) – 1 or M
←
(M) – 1 or X
←
(X) – 1
PC
←
(PC) + 3 +
rel
(result)
≠
0
PC
←
(PC) + 2 +
rel
(result)
≠
0
PC
←
(PC) + 2 +
rel
(result)
≠
0
PC
←
(PC) + 3 +
rel
(result)
≠
0
PC
←
(PC) + 2 +
rel
(result)
≠
0
PC
←
(PC) + 4 +
rel
(result)
≠
0
M
←
(M) – 1
A
←
(A) – 1
X
←
(X) – 1
M
←
(M) – 1
M
←
(M) – 1
M
←
(M) – 1
A
←
(H:A)/(X)
H
←
Remainder
– – – – – –
DIR
INH
INH
IX1
IX
SP1
DIR
INH
INH
IX1
IX
SP1
3B
4B
5B
6B
7B
9E6B
3A
4A
5A
6A
7A
9E6A
dd rr
rr
rr
ff rr
rr
ff rr
dd
5
3
3
5
4
6
Decrement
– –
–
ff
ff
4
1
1
4
3
5
DIV
Divide
– – – –
INH
52
7
EOR #
opr
EOR
opr
EOR
opr
EOR
opr
,X
EOR
opr
,X
EOR ,X
EOR
opr
,SP
EOR
opr
,SP
INC
opr
INCA
INCX
INC
opr
,X
INC ,X
INC
opr
,SP
Exclusive OR M with A
A
←
(A
⊕
M)
0 – –
–
IMM
DIR
EXT
IX2
IX1
IX
SP1
SP2
DIR
INH
INH
IX1
IX
SP1
A8
B8
C8
D8
E8
F8
9EE8
9ED8
3C
4C
5C
6C
7C
9E6C
ii
dd
hh ll
ee ff
ff
ff
ee ff
dd
2
3
4
4
3
2
4
5
4
1
1
4
3
5
Increment
M
←
(M) + 1
A
←
(A) + 1
X
←
(X) + 1
M
←
(M) + 1
M
←
(M) + 1
M
←
(M) + 1
– –
–
ff
ff
Table 7-1. Instruction Set Summary (Sheet 3 of 6)
Source
Form
Operation
Description
Effect
on CCR
A
M
O
O
C
V H I N Z C