Texas Instruments TMS320C28x Reference Manual page 327

Dsp cpu and instruction set
Table of Contents

Advertisement

MOV loc16, AX, COND
MOV loc16, AX, COND
SYNTAX OPTIONS
MOV loc16, AX, COND
Operands
loc16
AX
COND
Description
Flags and
N
Modes
Z
V
Repeat
6-170
0101 0110 0010 101A
0000 COND LLLL LLLL
Addressing mode (see Chapter 5)
Accumulator high (AH) or accumulator low (AL) register
Conditional codes:
COND
Syntax
0000
NEQ
Not Equal To
0001
EQ
Equal To
0010
GT
Greater Then
0011
GEQ
Greater Then Or Equal To
0100
LT
Less Then
0101
LEQ
Less Then Or Equal To
0110
HI
Higher
0111
HIS, C
Higher Or Same, Carry Set
1000
LO, NC
Lower, Carry Clear
1001
LOS
Lower Or Same
1010
NOV
No Overflow
1011
OV
Overflow
1100
NTC
Test Bit Not Set
1101
TC
Test Bit Set
1110
NBIO
BIO Input Equal To Zero
1111
UNC
Unconditional
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.
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.
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.
If the V flag is tested by the condition, then V is cleared.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
Store AX Register Conditionally
OPCODE
OBJMODE
Description
RPT
CYC
1
1
Flags Tested
Z = 0
Z = 1
Z = 0 AND N = 0
N = 0
N = 1
Z = 1 OR N = 1
C = 1 AND Z = 0
C = 1
C = 0
C = 0 OR Z = 1
V = 0
V = 1
TC = 0
TC = 1
BIO = 0

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF