Logical Instructions; Integer Arithmetic Operations - Motorola MC68030 User Manual

Enhanced 32-811 microprocessor
Hide thumbs Also See for MC68030:
Table of Contents

Advertisement

III
Table 3-2. Integer Arithmetic Operations
Instruction
Operand Syntax
Operand Size
Operation
ADD
Dn,(ea)
8,16,32
source + destination. destination
(ea),Dn
8,16,32
ADDA
(ea),An
16,32
ADDI
#(data),(ea)
8,16,32
immediate data + destination. destination
ADDQ
#(data),(ea)
8,16,32
ADDX
Dn,Dn
8,16,32
source + destination + X • destination
- (An), - (An)
8,16,32
CLR
(ea)
8,16,32
o •
destination
CMP
(ea),Dn
8,16,32
destination - source
CMPA
(ea),An
16,32
CMPI
#(data),(ea)
8,16,32
destination - immediate data
CMPM
(An)+,(An)+
8,16,32
destination - source
CMP2
(ea),Rn
8,16,32
lower bound (
=
Rn (
=
upper bound
DIVS/DIVU
(ea),Dn
32/16.16:16
destination/source. destination (signed or unsigned)
(ea),Dr:Dq
64/32.32:32
(ea),Dq
32/32.32
DIVSLlDIVUL
(ea),Dr:Dq
32/32 • 32:32
EXT
Dn
8.16
sign extended destination. destination
Dn
16.32
EXTB
Dn
8.32
MULS/MULU
(ea),Dn
16x 16.32
source x destination. destination (signed or unsigned)
(ea),DI
32 x 32.32
(ea),Dh:DI
32 x32. 64
NEG
(ea)
8,16,32
o -
destination. destination
NEGX
(ea)
8,16,32
o -
destination - X • destination
SUB
(ea),Dn
8,16,32
destination
=
source. destination
Dn,(ea)
8,16,32
SUBA
(ea),An
16,32
SUBI
#(data),(ea)
8,16,32
destination - immediate data. destination
SUBQ
#(data),(ea)
8,16,32
SUBX
Dn,Dn
8,16,32
destination - source - X. destination
-(An),-(An)
8,16,32
3.2.3 Logical Instructions
3-6
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 oper'ations with all
sizes of immediate data. The TST instruction compares the operand with zero
arithmetically, placing the result in the condition code register: Table 3-3
summarizes the logical operation,s.
MC68030 USER'S MANUAL
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents