Instruction Set Summary
MOTOROLA
MC68030 USER’S MANUAL
3-5
Table 3–1 is a summary of the integer and floating-point data movement operations.
3.2.2 Integer Arithmetic Instructions
The integer arithmetic operations include the four basic operations of add (ADD), subtract
(SUB), multiply (MUL), and divide (DIV) as well as arithmetic compare (CMP, CMPM,
CMP2), clear (CLR), and negate (NEG). The instruction set includes ADD, CMP, and SUB
instructions for both address and data operations with all operand sizes valid for data
operations. Address operands consist of 16 or 32 bits. The clear and negate instructions
apply to all sizes of data operands.
Signed and unsigned MUL and DIV instructions include:
• Word multiply to produce a long-word product
• Long-word multiply to produce and long-word or quad-word product
• Division of a long word divided by a word divisor (word quotient and word remainder)
• Division of a long word or quad word dividend by a long-word divisor (long-word quo-
tient and long-word remainder)
A set of extended instructions provides multiprecision and mixed-size arithmetic. These
instructions are add extended (ADDX), subtract extended (SUBX), sign extended (EXT),
and negate binary with extend (NEGX). Refer to Table 3–2 for a summary of the integer
arithmetic operations.
Table 3-1. Data Movement Operations
Instruction Operand Syntax Operand Size Operation
EXG Rn,Rn 32 Rn
↔
Rn
LEA
〈
ea
〉
,An 32
〈
ea
〉
→
An
LINK An,#
〈
d
〉
16, 32 Sp - 4
→
SP; An
→
(SP); SP
→
An, SP + D
→
SP
MOVE
MOVEA
〈
ea
〉
,
〈
ea
〉
,An 8, 16, 32
16, 32
→
32
source
→
destination
MOVEM list,
〈
ea
〉
,list 16, 32
16, 32
→
32
listed registers
→
destination
source
→
listed registers
MOVEP
Dn,(d
16
,An)
(d
16
,An),Dn
16, 32
Dn[31:24]
→
(An + d); Dn[23:16]
→
An + d + 2);
Dn[15:8]
→
(An + d + 4); Dn[7:0]
→
(An + d + 6)
(An + d)
→
Dn[31:24]; (An + d + 2)
→
Dn[23:16];
(An + d + 4)
→
Dn[15:8]; (An + d + 6)
→
Dn[7:0]
MOVEQ #
〈
data
〉
,Dn 8
→
32 immediate data
→
destination
PEA
〈
ea
〉
32 SP — 4
→
SP;
〈
ea
〉
→
(SP)
UNLK An 32 An
→
SP; (SP)
→
An; SP + 4
→
SP