MOV loc16, AX
SYNTAX OPTIONS
MOV loc16, AX
Operands
loc16
AX
Description
Flags and
N
Modes
Z
Repeat
Example
; Initialize all Array1 elements with the value 0xFFFF:
MOV
MOVL
RPT
|| MOV
1001 011A LLLL LLLL
Addressing mode (see Chapter 5)
Accumulator high (AH) or accumulator low (AL) register
Load the addressed location pointed to by the "loc16" addressing mode with
the 16-bit content of the specified AX register (AH or AL):
[loc16] = AX;
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.
If this operation follows a RPT instruction, then it will be executed N+1 times.
The state of the N and Z flags will reflect the final result.
AH,#0xFFFF
XAR2,#Array1
#9
*XAR2++, AH
OPCODE
; Load AH with the value 0xFFFF
; Load XAR2 with address of Array1
; Repeat next instruction 10 times.
; Store contents of AH into location
; pointed by XAR2 and post-increment
; XAR2.
MOV loc16, AX
Store AX
OBJMODE
RPT
CYC
X
Y
N+1
6-169
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?