The Core
3-6
MC68322 USER’S MANUAL
MOTOROLA
Table 3-4. Instruction Set Summary
OPCODE
OPERATION
SYNTAX
ABCD
Source
10
+ Destination
10
+ X
- Destination
ABCD Dy,Dx
ABCD –(Ay), –(Ax)
ADD
Source + Destination
- Destination
ADD <ea>,Dn
ADD Dn,<ea>
ADDA
Source + Destination
- Destination
ADDA <ea>,An
ADDI
Immediate Data + Destination
- Destination
ADDI #<data>,<ea>
ADDQ
Immediate Data + Destination
-Destination
ADDQ # <data>,<ea>
ADDX
Source + Destination + X
- Destination
ADDX Dy, Dx
ADDX –(Ay), –(Ax)
AND
Source
Λ Destination - Destination
AND <ea>,Dn
AND Dn,<ea>
ANDI
Immediate Data
Λ Destination - Destination
ANDI # <data>, <ea>
ANDI to CCR
Source
Λ CCR - CCR
ANDI # <data>, CCR
ANDI to SR
If supervisor state then Source
Λ SR - SR else TRAP
ANDI # <data>, SR
ASL, ASR
Destination Shifted by <count>
- Destination
ASd Dx,Dy
ASd # <data>,Dy
ASd <ea>
Bcc
If (condition true) then PC + dn
- PC
Bcc <label>
BCHG
~ (<bit number> of Destination)
- Z;
~ (<bit number> of Destination)
- <bit number> of Destination
BCHG Dn,<ea>
BCHG # <data>,<ea>
BCLR
~ (<bit number> of Destination)
- Z;
0
- <bit number> of Destination
BCLR Dn,<ea>
BCLR # <data>,<ea>
BKPT
Run breakpoint acknowledge cycle;
TRAP as illegal instruction
BKPT # <data>
BRA
PC + dn
- PC
BRA <label>
BSET
~ (<bit number> of Destination)
- Z;
1
- <bit number> of Destination
BSET Dn,<ea>
BSET # <data>,<ea>
BSR
SP – 4
- SP; PC -(SP); PC + dn - PC
BSR <label>
BTST
~ (<bit number> of Destination)
-Z;
BTST Dn,<ea>
BTST # <data>,<ea>
CHK
If Dn < 0 or Dn > Source then TRAP
CHK <ea>,Dn
CLR
0
- Destination
CLR <ea>
CMP
Destination – Source
- cc
CMP <ea>,Dn
CMPA
Destination – Source
- cc
CMPA <ea>,An
CMPI
Destination – Immediate Data
- cc
CMPI # <data>,<ea>
CMPM
Destination – Source
- cc
CMPM (Ay)+, (Ax)+
DBcc
If condition false then (Dn – 1
- Dn;
If Dn
≠ –1 then PC + dn - PC)
DBcc Dn,<label>
DIVS
Destination
÷ Source - Destination
DIVS.W <ea>,Dn32/16
- 16r:16q
DIVU
Destination
÷ Source - Destination
DIVU.W <ea>,Dn32/16
- 16r:16q
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.