CPU32+
MOTOROLA
MC68360 USER’S MANUAL
5-21
5.3.3.4 LOGIC INSTRUCTIONS.
The logical operation instructions (AND, OR, EOR, and
NOT) perform logical operations with all sizes of integer data operands. A similar set of
immediate instructions (ANDI, ORI, and EORI) provide these logical operations with all sizes
of immediate data. The test (TST) instruction arithmetically compares the operand with zero,
placing the result in the CCR. Table 5-6 summarizes the logical operations.
Table 5-5. Integer Arithmetic Operations
Instruction
Operand
Syntax
Operand
Size
Operation
ADD
Dn,
ea
ea
, Dn
ea
, An
#
data
,
ea
#
data
,
ea
8, 16, 32
8, 16, 32
Source + Destination
Destination
ADDA
16, 32
Source + Destination
Destination
Immediate Data + Destination
Destination
Immediate Data + Destination
Destination
ADDI
8, 16, 32
ADDQ
8, 16, 32
ADDX
Dn, Dn
– (An), – (An)
8, 16, 32
8, 16, 32
Source + Destination + X
Destination
CLR
ea
8, 16, 32
0
Destination
CMP
ea
, Dn
ea
, An
#
data
,
ea
8, 16, 32
(Destination – Source), CCR shows results
CMPA
16, 32
(Destination – Source), CCR shows results
CMPI
8, 16, 32
(Destination – Immediate Data), CCR shows results
CMPM
(An) +, (An) +
8, 16, 32
(Destination – Source), CCR shows results
CMP2
ea
, Rn
ea
, Dn
ea
, Dr:Dq
ea
, Dq
ea
, Dr:Dq
8, 16, 32
Lower bound
≤
Rn
≤
Upper Bound, CCR shows results
DIVS/DIVU
DIVSL/DIVUL
32/16
16:16
64/32
32:32
32/32
32
32/32
32:32
8
16
16
32
8
32
16
×
16
32
32
×
32
32
32
×
32
64
Destination/Source
Destination (signed or un-
signed)
EXT
Dn
Dn
Sign Extended Destination
Destination
EXTB
Dn
Sign Extended Destination
Destination
MULS/MULU
ea
, Dn
ea
, Dl
ea
, Dh:Dl
ea
ea
ea
, Dn
Dn,
ea
ea
, An
#
data
,
ea
#
data
,
ea
Source
×
Destination
Destination (signed or un-
signed)
NEG
8, 16, 32
0 – Destination
Destination
0 – Destination – X
Destination
NEGX
8, 16, 32
SUB
8, 16, 32
Destination – Source
Destination
SUBA
16, 32
Destination – Source
Destination
Destination – Immediate Data
Destination
Destination – Immediate Data
Destination
SUBI
8, 16, 32
SUBQ
8, 16, 32
SUBX
Dn, Dn
– (An), – (An)
8, 16, 32
8, 16, 32
Destination – Source – X
Destination
TBLS/TBLU
ea
, Dn
Dym:Dyn, Dn
8, 16, 32
Dyn – Dym
Temp
(Temp
×
Dn [7:0])
Temp
(Dym
×
256) + Temp
Dn
Dyn – Dym
Temp
(Temp
×
Dn [7:0]) / 256
Temp
Dym + Temp
Dn
TBLSN/TBLUN
ea
, Dn
Dym:Dyn, Dn
8, 16, 32