MC68331
USER’S MANUAL
CENTRAL PROCESSING UNIT
MOTOROLA
5-11
5
Table 5-1 Instruction Set Summary
Instruction
ABCD
Syntax
Dn, Dn–
(An), – (An)
Dn, <ea>
<ea>, Dn
<ea>, An
#<data>, <ea>
#<data>, <ea>
Dn, Dn–
(An), – (An)
<ea>, Dn
Dn, <ea>
#<data>, <ea>
#<data>, CCR
#<data>, SR
Dn, Dn
#<data>, Dn
<ea>
Dn, Dn
#<data>, Dn
<ea>
<label>
Dn, <ea>
#<data>, <ea>
Dn, <ea>
#<data>, <ea>
none
Operand Size
8
8
8, 16, 32
8, 16, 32
16, 32
8, 16, 32
8, 16, 32
8, 16, 32
8, 16, 32
8, 16, 32
8, 16, 32
8, 16, 32
8
16
8, 16, 32
8, 16, 32
16
8, 16, 32
8, 16, 32
16
8, 16, 32
8, 32
8, 32
8, 32
8, 32
none
Operation
Source
10
+ Destination
10
+ X
Destination
ADD
Source + Destination
Destination
ADDA
ADDI
ADDQ
ADDX
Source + Destination
Destination
Immediate data + Destination
Destination
Immediate data + Destination
Destination
Source + Destination + X
Destination
AND
Source · Destination
Destination
ANDI
Data · Destination
Destination
Source · CCR
CCR
Source · SR
SR
ANDI to CCR
ANDI to SR
1
ASL
ASR
Bcc
BCHG
If condition true, then PC + d
PC
(<bit number> of destination
Z
bit of destination
(<bit number> of destination
Z;
0
bit of destination
If background mode enabled, then enter
background mode, else format/vector offset
– (SSP);
PC
– (SSP); SR
– (SSP); (vector)
PC
If breakpoint cycle acknowledged, then execute
returned operation word, else trap as illegal
instruction.
PC + d
PC
(<bit number> of destination
Z;
1
bit of destination
SP – 4
SP; PC
(SP); PC + d
PC
(<bit number> of destination
Z
BCLR
BGND
BKPT
#<data>
none
BRA
BSET
<label>
Dn, <ea>
#<data>, <ea>
<label>
Dn, <ea>
#<data>, <ea>
<ea>, Dn
<ea>, Rn
8, 16, 32
8, 32
8, 32
8, 16, 32
8, 32
8, 32
16, 32
8, 16, 32
BSR
BTST
CHK
CHK2
If Dn < 0 or Dn < (ea), then CHK exception
If Rn < lower bound or Rn > upper bound, then
CHK exception
0
Destination
(Destination – Source), CCR shows results
(Destination – Source), CCR shows results
(Destination – Data), CCR shows results
(Destination – Source), CCR shows results
Lower bound Rn Upper bound, CCR shows result
If condition false, then Dn – 1
PC;
if Dn
≠
(– 1), then PC + d
PC
Destination / Source
Destination
(signed or unsigned)
CLR
CMP
CMPA
CMPI
CMPM
CMP2
DBcc
<ea>
<ea>, Dn
<ea>, An
#<data>, <ea>
(An) +, (An) +
<ea>, Rn
Dn, <label>
8, 16, 32
8, 16, 32
16, 32
8, 16, 32
8, 16, 32
8, 16, 32
16
DIVS/DIVU
<ea>, Dn
32/16
16: 16