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 #327 background imageLoading...
Page #327 background image
MOV loc16, AX, COND
6-170
MOV loc16, AX, COND Store AX Register Conditionally
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
MOV loc16, AX, COND
0101 0110 0010 101A
0000 COND LLLL LLLL
1 1
Operands
loc16 Addressing mode (see Chapter 5)
AX Accumulator high (AH) or accumulator low (AL) register
COND Conditional codes:
COND Syntax Description Flags Tested
0000 NEQ Not Equal To Z = 0
0001 EQ Equal To Z = 1
0010 GT Greater Then Z = 0 AND N = 0
0011 GEQ Greater Then Or Equal To N = 0
0100 LT Less Then N = 1
0101 LEQ Less Then Or Equal To Z = 1 OR N = 1
0110 HI Higher C = 1 AND Z = 0
0111 HIS, C Higher Or Same, Carry Set C = 1
1000 LO, NC Lower, Carry Clear C = 0
1001 LOS Lower Or Same C = 0 OR Z = 1
1010 NOV No Overflow V = 0
1011 OV Overflow V = 1
1100 NTC Test Bit Not Set TC = 0
1101 TC Test Bit Set TC = 1
1110 NBIO BIO Input Equal To Zero BIO = 0
1111 UNC Unconditional
Description If the specified condition being tested is true, then the location pointed to by the
“loc16” addressing mode will be loaded with the contents of the specified AX reg-
ister (AH or AL):
if(COND = true) [loc16] = AX;
Note: Addressing modes are not conditionally executed. Hence, if an addressing mode
performs a pre or post modification, the modification will occur, regardless of whether
the condition is true or not.
Flags and
Modes
N If (COND = true AND loc16 = @AX), AX is tested for a negative condition after
the move and if bit 15 of AX is 1, the negative flag bit is set.
Z If (COND = true AND loc16 = @AX), after the move, AX is tested for a zero
condition and the zero flag bit is set if AX = 0, otherwise, it is cleared.
V If the V flag is tested by the condition, then V is cleared.
Repeat This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.

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