Data Movement Instructions - Motorola CPU32 Reference Manual

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

Table 4-1 Condition Code Computations (Continued)
Operations
ASL
ASL (r = 0)
LSL, ROXL
LSR (r = 0)
ROXL (r = 0)
ROL
ROL (r = 0)
ASR, LSR, ROXR
ASR, LSR (r = 0)
ROXR (r = 0)
ROR
ROR (r = 0)
Note: The following notation applies to this table only.
— Not affected
U Undefined
? See special definition
∗ General case
X = C
N = Rm
Z = Rm •... • R0

4.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 4-2 is a
summary of the data movement operations.
Instruction
EXG
LEA
LINK
MOVE
MOVEA
MOTOROLA
4-6
X
N
Z
V
*
*
*
?
*
*
0
*
*
*
0
*
*
0
*
*
0
*
*
0
*
*
0
*
*
*
0
*
*
0
*
*
0
*
*
0
*
*
0
Table 4-2 Data Movement Operations
Syntax
Operand Size
Rn, Rn
32
〈ea〉, An
32
An, #〈d〉
16, 32
〈ea〉, 〈ea〉
8, 16, 32
〈ea〉, An
16, 32 → 32
INSTRUCTION SET
C
Special Definition
V = Dm • (Dm – 1
+
...
+
+
?
(Dm-1
Dm – r)
C = Dm – r + 1
0
?
C = Dm – r + 1
0
?
C = X
?
C = Dm – r + 1
0
?
C = Dr – 1
0
?
C = X
?
C = Dr – 1
0
Sm
Source operand MSB
Dm
Destination operand MSB
Rm
Result operand MSB
R
Register tested
r
Shift count
LB
Lower bound
UB
Upper bound
Operation
Rn → Rn
〈ea〉 → An
SP – 4 → SP, An → (SP); SP → An, SP + d → SP
Source → Destination
Source → Destination
...
Dm – r) + Dm •
+
CPU32
REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents