Freescale Semiconductor, Inc.
Table 5-3. Condition Code Computations (Continued)
Operations
X
N
Z
V
0
0
C
?
0
Special Definition
ROR
ROR (r = 0)
—
—
C = Dr – 1
NOTE: The following notations apply to this table only.
—
U
?
=
=
=
=
=
=
=
=
=
Not affected
Undefined
Sm
Dm
Rm
R
=
Source operand MSB
Destination operand MSB
Result operand MSB
Register tested
Bit Number
=
=
=
=
=
=
=
=
See special definition
General case
C
X
N
Z
n
Rm
r
Shift count
Rm Λ ... Λ R0
Boolean AND
Boolean OR
LB
UB
Rm
Lower bound
Λ
V
Upper bound
NOT Rm
5.3.3.2 DATA MOVEMENT INSTRUCTIONS. The MOVE instruction is the basic means of
transferring and storing address and data. MOVE instructions transfer byte, word, and
long-word operands from memory to memory, memory to register, register to memory,
and register to register. Address movement instructions (MOVE or MOVEA) transfer word
and long-word operands and ensure that only valid address manipulations are executed.
In addition to the general MOVE instructions, there are several special data movement
instructions—move multiple registers (MOVEM), move peripheral data (MOVEP), move
quick (MOVEQ), exchange registers (EXG), load effective address (LEA), push effective
address (PEA), link stack (LINK), and unlink stack (UNLK). Table 5-4 is a summary of the
data movement operations.
Table 5-4. Data Movement Operations
Operand
Instruction
EXG
Syntax
Rn, Rn
ea , An
An, # d
ea , ea
ea , An
Operand Size
32
Operation
Rn Rn
LEA
32
ea
An
LINK
16, 32
8, 16, 32
SP – 4
Source
Source
SP, An (SP); SP
Destination
An, SP + d
SP
MOVE
MOVEA
MOVEM
16, 32
16, 32
16, 32
16, 32
32
Destination
list, ea
ea , list
Listed registers
Source
Destination
Listed registers
32
MOVEP
Dn, (d , An)
16
Dn [31:24]
Dn [15:8]
(An + d)
(An + d); Dn [23:16]
(An + d + 2);
(An + d + 4); Dn [7:0] (An + d + 6)
Dn [31:24]; (An + d + 2) Dn [23:16];
Dn [15:8]; (An + d + 6) Dn [7:0]
(d , An), Dn
16
(An + d + 4)
MOVEQ
PEA
# data , Dn
8
32
32
32
Immediate Data
Destination
ea
SP – 4
An
SP; ea SP
UNLK
An
SP; (SP) An, SP + 4
SP
MOTOROLA
MC68340 USER’S MANUAL
5- 21
For More Information On This Product,
Go to: www.freescale.com