Texas Instruments TMS320C28x Reference Manual page 365

Dsp cpu and instruction set
Table of Contents

Advertisement

MOVL loc32,ACC,COND
Flags and
N
Modes
Z
V
Repeat
Example
; Swap the contents of 32-bit VarA and VarB if VarB is higher:
MOVL
MOVL
CMPL
MOVL
MOVL
MOVL
6-208
If (COND = true AND loc32 = @ACC), then after the move if bit 31 of
ACC is 1, N is set; otherwise N cleared.
If (COND = true AND loc32 = @ACC), then after the move if (ACC = 0), then
the Z bit is set; otherwise it is cleared.
If the V flag is tested by the condition, then V 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,@VarB
P,@VarA
ACC,@P
@VarA,ACC,HI
@P,ACC,HI
@VarA,P
; ACC = VarB
; P = VarA
; Set flags on (VarB − VarA)
; VarA = ACC if higher
; P = ACC if higher
; VarA = P

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?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF