
Instruction Set Summary
3-24
MC68030 USER’S MANUAL
MOTOROLA
NOTES:
1. Specifies either the instruction (IC), data (DC), or IC/DC caches.
2. Where r is rounding precision, S or D.
3. A list of any combination of the eight floating-point data registers, with individual register names separated by a
slash (/) and/or contiguous blocks of registers specified by the first and last register names separated by a dash
( –).
4. A list of any combination of the three floating-point system control registers (FPCR, FPSR, and FPIAR) with
indvidual register names separated by a slash (/).
5. Where d is direction, L or R.
Table 3-14. Instruction Set Summary (Concluded)
Opcode
RTD
RTE
Operation
Syntax
(SP)
→
PC; SP + 4 + d
→
SP
If-supervisor-state
then (SP)
→
SR; SP+2
→
SP; (SP)
→
PC;
SP + 4
→
SP;
restore state and deallocate stack according to (SP)
else TRAP
Reload Saved Module State from Stack
(SP)
→
CCR; SP + 2
→
SP;
(SP)
→
PC; SP + 4
→
SP
(SP)
→
PC; SP + 4
→
SP
Destination
10
--Source
10
–X
→
Destination
RTD #
displacement
RTE
RTM
RTR
RTM Rn
RTR
RTS
SBCD
RTS
SBCD Dx,Dy
SBCD –(Ax),–(Ay)
Scc
ea
Scc
If condition true
then 1s
→
Destination
else 0s
→
Destination
If supervisor state
then Immediate Data
→
SR; STOP
else TRAP
Destination — Source
→
Destination
STOP
STOP #
data
SUB
SUB
ea
,Dn
SUB Dn,
ea
SUBA
ea
,An
SUBI #
data
,
ea
SUBQ #
data
,
ea
SUBX Dx,Dy
SUBX –(Ax),–(Ay)
SWAP Dn
TAS
ea
TRAP # (vector
SUBA
SUBI
SUBQ
SUBX
Destination — Source
→
Destination
Destination — Immediate Data
→
Destination
Destination — Immediate Data
→
Destination
Destination — Source – X
→
Destination
SWAP
TAS
TRAP
Register [31:16]
Register [15:0]
Destination Tested
→
Condition Codes; 1
→
bit 7 of Destination
SSP –2
→
SSP; Format/Offset
→
(SSP);
SSP – 4
→
SSP; PC
→
(SSP); SSP – 2
→
SSP;
SR
→
(SSP); Vector Address
→
PC
TRAPcc If cc then TRAP
TRAPcc
TRAPcc.W #
data
TRAPcc.L #
data
TRAPV
TST
ea
UNLK An
TRAPV If V then TRAP
TST
Destination Tested
→
Condition Codes
UNLK
An
→
SP; (SP)
→
An; SP + 4
→
SP
UNPK
Source (Packed BCD) + adjustment
→
Destination (Unpacked BCD) UNPACK –(Ax),–(Ay),#(adjustment
UNPACK Dx,Dy,#(adjustment