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 #326 background imageLoading...
Page #326 background image
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.

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