Texas Instruments TMS320C28x Reference Manual page 322

Dsp cpu and instruction set
Table of Contents

Advertisement

MOV loc16, *(0:16bit)
SYNTAX OPTIONS
MOV loc16, *(0:16bit)
Operands
loc16
*(0:16bit) Immediate direct memory address, access low 64K range of data space
Description
Flags and
N
Modes
Z
Repeat
Example
MOVL XAR2,#Array2
RPT
||MOV *XAR2++,*(0:Array1)
Addressing mode (see Chapter 5)
only (0x00000000 to 0x0000FFFF)
Move the content of the location specified by the constant direct memory
address "0:16bit" into the location pointed to by the "loc16" addressing
mode:
[loc16] = [0x0000:16bit];
If (loc16 = @AX), then the load to AX is tested for a negative condition. The
negative flag bit is set if bit 15 of AX is 1, otherwise it is cleared.
If (loc16 = @AX), then the load to AX is tested for a zero condition. The bit
is set if the result of the operation on the AX register generates a 0 value,
otherwise it is cleared.
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 are 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)
OPCODE
1111 0101 LLLL LLLL
CCCC CCCC CCCC CCCC
// Located in low 64K of data space
; XAR2 = pointer to Array2
; Repeat next instruction N times
; Array2[i] = Array1[i],
; i++
MOV loc16, *(0:16bit)
Move Value
OBJMODE
RPT
CYC
X
Y
N+2
6-165

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