Texas Instruments TMS320C28x Reference Manual page 313

Dsp cpu and instruction set
Table of Contents

Advertisement

MOV *(0:16bit), loc16
MOV *(0:16bit), loc16
SYNTAX OPTIONS
MOV *(0:16bit),loc16
Operands
*(0:16bit)
loc16
Description
Flags and
Modes
Repeat
Example
MOVL XAR2,#Array1
RPT
||MOV
6-156
Immediate direct memory address, access low 64K range of data
space only (0x00000000 to 0x0000FFFF)
Addressing mode (see Chapter 5)
Move the content of the location pointed to by the "loc16" addressing
mode to the memory location specified by the "0:16bit" constant address:
[0x0000:16bit] = [loc16];
None
This instruction is repeatable. If the operation follows a RPT instruction,
then it will be executed N+1 times. When repeated, the "(0:16bit)"
data-memory address is post-incremented by 1 during each repetition.
Only the lower 16 bits of the address is affected.
; Copy the contents of Array1 to Array2:
; int16 Array1[N];
; int16 Array2[N];
; for(i=0; i < N; i++)
;
Array2[i] = Array1[i];
#(N−1)
*(0:Array2),*XAR2++
OPCODE
1111 0100 LLLL LLLL
CCCC CCCC CCCC CCCC
// Located in low 64K of data space
; XAR2 = pointer to Array1
; Repeat next instruction N times
; Array2[i] = Array1[i],
; i++
Move Value
OBJMODE
RPT
CYC
X
Y
N+2

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