dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 557

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
MOVEU.W
Operation:
S → D
Description: Move an unsigned 16-bit value from memory or a register to a register, or load a register with an im-
Note:
Example 1:
Explanation of Example:
Example 2:
Explanation of Example:
Condition Codes Affected:
Freescale Semiconductor
Before Execution
Before Execution
(no parallel move)
A2
F
mediate value. All memory locations are specified with word pointers, offsets are specified as word
offsets, and absolute addresses are specified as word addresses.
Operands are affected as follows:
– When a 16-bit register is a destination, the entire register is filled with the source value.
– When a 24-bit register is a destination, the lower 16 bits are written and the upper 8 bits are filled
– When the N register is used for post-update (for example, X:(Rn)+N), the value of N is truncated
Only AGU registers are allowed as destination operands for this instruction.
MOVEU.W X:(R0+$21),R3 ; move word from memory to R3
Prior to the memory move, the AGU register R3 contains the value $CCDD22. After execution of the
MOVEU.W X:(R0+$21),R3 instruction, the lower 16-bit portion of R3 is updated with the value in
memory that is pointed to by the R0 register, with a word offset of $21 (word location $004465). The
value is zero extended through bit 23, and the register R3 becomes $009060; R0 is unchanged.
MOVEU.W A,R0
Prior to the memory move, the AGU register R0 contains the value $654321. After execution of the
MOVEU.W A,R0 instruction, the lower 16-bit portion of R0 is updated with the value in the FF1 por-
tion of the accumulator A. The value is zero extended through bit 23, and the register R0 becomes
$00CCDD.
The condition codes are not affected by this instruction unless SR is specified as the destination.
with zero.
to 16 bits and then sign extended to 24 bits before it is added to Rn.
CCDD
R0
R0
R3
X:$4465
A1
CCDD22
654321
004444
Move Unsigned Word
2233
9060
A0
Instruction Set Details
; move word from a register to an AGU register
Assembler Syntax:
MOVEU.W
After Execution
After Execution
A2
F
S,D
R0
R0
R3
CCDD
X:$4465
A1
(no parallel move)
MOVEU.W
00CCDD
004444
009060
2233
9060
A0
A-213

Related parts for dsp56800e