Texas Instruments TMS320C28x Reference Manual page 377

Dsp cpu and instruction set
Table of Contents

Advertisement

MOVU ACC,loc16
MOVU ACC,loc16
SYNTAX OPTIONS
MOVU ACC,loc16
Operands
ACC
loc16
Description
Flags and
N
Modes
Z
Repeat
Example
; Add three 32-bit unsigned variables by 16-bit parts:
MOVU
ADD
ADDU
ADD
ADDCU ACC,@VarClow
ADD
6-220
0000 1110 LLLL LLLL
Accumulator register
Addressing mode (see Chapter 5)
Load the low half of the accumulator (AL) with the 16-bit contents of the
addressed location pointed to by the "loc16" addressing mode and fill the
high half of the accumulator (AH) with 0s:
AL = [loc16];
AH = 0x0000;
Clear flag.
After the load, the Z flag is set if the ACC value is zero, else Z is cleared.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
ACC,@VarAlow
ACC,@VarAhigh << 16
ACC,@VarBlow
ACC,@VarBhigh << 16
ACC,@VarChigh << 16
Load Accumulator With Unsigned Word
OPCODE
; AH = 0, AL = VarAlow
; AH = VarAhigh, AL = VarAlow
; ACC = ACC + 0:VarBlow
; ACC = ACC + VarBhigh << 16
; ACC = ACC + VarClow + Carry
; ACC = ACC + VarChigh << 16
OBJMODE
RPT
CYC
X
1

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Table of Contents

Save PDF