MOV loc16, #0
MOV loc16, #0
SYNTAX OPTIONS
MOV loc16, #0
Operands
loc16
#0
Description
Flags and
N
Modes
Z
Repeat
Example
; Initialize the contents of Array1 with zero:
; int16 Array1[N];
; for(i=0; i < N; i++)
;
Array1[i] = 0;
MOVL XAR2,#Array1
RPT
||MOV *XAR2++,#0
6-166
Addressing mode (see Chapter 5)
Immediate constant value of zero
Load the location pointed to by the "loc16" addressing mode with the value
0x0000:
[loc16] = 0x0000;
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 is follows a RPT instruction,
then it will be executed N+1 times.
#(N−1)
OPCODE
0010 1011 LLLL LLLL
; XAR2 = pointer to Array1
; Repeat next instruction N times
; Array1[i] = 0,
; i++
Clear 16-bit Location
OBJMODE
RPT
CYC
X
Y
N+1
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?