MOV loc16, AX
6-169
MOV loc16, AX
Store AX
SYNTAX OPTIONS
OPCODE
OBJMODE
RPT
CYC
MOV loc16, AX
1001 011A LLLL LLLL
X
Y
N+1
Operands
loc16
Addressing mode (see Chapter 5)
AX
Accumulator high (AH) or accumulator low (AL) register
Description
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;
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
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.
Example
; Initialize all Array1 elements with the value 0xFFFF:
MOV AH,#0xFFFF
; Load AH with the value 0xFFFF
MOVL XAR2,#Array1
; Load XAR2 with address of Array1
RPT #9
|| MOV *XAR2++, AH
; Repeat next instruction 10 times.
; Store contents of AH into location
; pointed by XAR2 and post-increment
; XAR2.
Содержание TMS320C28x
Страница 30: ...1 12...
Страница 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Страница 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Страница 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Страница 509: ...SUBL ACC P PM 6 352 SUBL ACC P PM ACC S B 11 M X 4 MOVH Y ACC 5 Store Q15 result into Y...
Страница 585: ...This page intentionally left blank 7 32 This page intentionally left blank...