Repeat
Example
; Store the 32-bit contents of the ACC into the
; 32-bit contents of "Var32" location in reverse byte order:
; Before operation:
; After operation:
MOVL
MOVB
MOVB
MOVB
MOVB
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
ACC
Var32 = B0 | B1 | B2 | B3
XAR2,#Var32
*+XAR2[0],AH.MSB
*+XAR2[1],AH.LSB
*+XAR2[2],AL.MSB
*+XAR2[3],AL.LSB
= B3 | B2 | B1 | B0
; Load XAR2 with address of "Var32"
; Var32(B0) = ACC(B3)
; Var32(B1) = ACC(B2)
; Var32(B2) = ACC(B1)
; Var32(B3) = ACC(B0)
MOVB loc16, AX.LSB
6-197
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?