Typewriter User Manual
MOTOROLA MC68340 USER’S MANUAL 5- 23
Table 5-5. Integer Arithmetic Operations
Instruction
Operand
Syntax Operand Size Operation
ADD Dn, 〈ea〉
〈ea〉, Dn
8, 16, 32
8, 16, 32
Source + Destination ⇒ Destination
ADDA 〈ea〉, An 16, 32 Source + Destination ⇒ Destination
ADDI #〈data〉, 〈ea〉 8, 16, 32 Immediate Data + Destination ⇒ Destination
ADDQ #〈data〉, 〈ea〉 8, 16, 32 Immediate Data + Destination ⇒ Destination
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 8, 16, 32 (Destination – Source), CCR shows results
CMPA 〈ea〉, An 16, 32 (Destination – Source), CCR shows results
CMPI #〈data〉, 〈ea〉 8, 16, 32 (Destination – Immediate Data), CCR shows results
CMPM (An) +, (An) + 8, 16, 32 (Destination – Source), CCR shows results
CMP2 〈ea〉, Rn 8, 16, 32 Lower bound ≤ Rn ≤ Upper Bound, CCR shows
results
DIVS/DIVU
DIVSL/DIVUL
〈ea〉, Dn
〈ea〉, Dr:Dq
〈ea〉, Dq
〈ea〉, Dr:Dq
32/16 ⇒ 16:16
64/32 ⇒ 32:32
32/32 ⇒ 32
32/32 ⇒ 32:32
Destination/Source ⇒ Destination (signed or
unsigned)
EXT Dn
Dn
8 ⇒ 16
16 ⇒ 32
Sign Extended Destination ⇒ Destination
EXTB Dn 8 ⇒ 32 Sign Extended Destination ⇒ Destination
MULS/MULU 〈ea〉, Dn
〈ea〉, Dl
〈ea〉, Dh:Dl
16 × 16 ⇒ 32
32 × 32 ⇒ 32
32 × 32 ⇒ 64
Source × Destination ⇒ Destination (signed or
unsigned)
NEG 〈ea〉 8, 16, 32 0 – Destination ⇒ Destination
NEGX 〈ea〉 8, 16, 32 0 – Destination – X ⇒ Destination
SUB 〈ea〉, Dn
Dn, 〈ea〉
8, 16, 32 Destination – Source ⇒ Destination
SUBA 〈ea〉, An 16, 32 Destination – Source ⇒ Destination
SUBI #〈data〉, 〈ea〉 8, 16, 32 Destination – Immediate Data ⇒ Destination
SUBQ #〈data〉, 〈ea〉 8, 16, 32 Destination – Immediate Data ⇒ Destination
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
TBLSN/TBLUN 〈ea〉, Dn
Dym:Dyn, Dn
8, 16, 32 Dyn – Dym ⇒ Temp
(Temp × Dn [7:0]) / 256 ⇒ Temp
Dym + Temp ⇒ Dn
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...