EasyManuals Logo

Texas Instruments TMS320C28x User Manual

Texas Instruments TMS320C28x
695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #323 background imageLoading...
Page #323 background image
MOV loc16, #0
6-166
MOV loc16, #0 Clear 16-bit Location
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
MOV loc16, #0 0010 1011 LLLL LLLL X Y N+1
Operands loc16 Addressing mode (see Chapter 5)
#0 Immediate constant value of zero
Description Load the location pointed to by the “loc16” addressing mode with the value
0x0000:
[loc16] = 0x0000;
Flags and
Modes
N
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.
Z
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.
Repeat This instruction is repeatable. If the operation is follows a RPT instruction,
then it will be executed N+1 times.
Example
; Initialize the contents of Array1 with zero:
; int16 Array1[N];
; for(i=0; i < N; i++)
; Array1[i] = 0;
MOVL XAR2,#Array1 ; XAR2 = pointer to Array1
RPT #(N−1) ; Repeat next instruction N times
||MOV *XAR2++,#0 ; Array1[i] = 0,
; i++

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments TMS320C28x Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320C28x
CategoryProcessor
LanguageEnglish

Related product manuals