
1-14
M68040 USER’S MANUAL
MOTOROLA
Table 1-4. Instruction Set Summary
Opcode
Operation
Syntax
ABCD
BCD Source + BCD Destination + 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
Source
Λ
CCR
CCR
ANDI #<data>,<ea>
ANDI to 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,Dy1
ASd #<data>,Dy1
ASd <ea>1
Bcc
If condition true
then PC + dn
PC
~(bit number of Destination)
Z;
~(bit number of Destination)
(bit number) of
Destination
Bcc <label>
BCHG
BCHG Dn,<ea>
BCHG #<data>,<ea>
BCLR
~(bit number of Destination)
Z;
0
bit number of Destination
BCLR Dn,<ea>
BCLR #<data>,<ea>
BFCHG
~(bit field of Destination)
bit field of Destination
BFCHG <ea>{offset:width}
BFCLR
0
bit field of Destination
BFCLR <ea>{offset:width}
BFEXTS
bit field of Source
Dn
BFEXTS <ea>{offset:width},Dn
BFEXTU
bit offset of Source
Dn
BFEXTU <ea>{offset:width},Dn
BFFFO
bit offset of Source Bit Scan
Dn
BFFFO <ea>{offset:width},Dn
BFINS
Dn
bit field of Destination
BFINS Dn,<ea>{offset:width}
BFSET
1s
bit field of Destination
BFSET <ea>{offset:width}
BFTST
bit field of Destination
BFTST <ea>{offset:width}
BKPT
Run breakpoint acknowledge cycle;
TRAP as illegal instruction
BKPT #<data>
BRA
PC + dn
PC
~(bit number of Destination)
Z;
1
bit number of Destination
BRA <label>
BSET
BSET Dn,<ea>
BSET #<data>,<ea>
BSR
SP – 4
SP; PC
(SP); PC + dn
PC
BSR <label>