www.ti.com
Instructions
MOV32 RaH, RbH {, CNDF}
Conditional 32-bit Move
Operands
RaH
floating-point destination register (R0H to R7H)
RbH
floating-point source register (R0H to R7H)
CNDF
optional condition.
Opcode
LSW: 1110 0110
1100 CNDF
MSW: 0000 0000
00bb baaa
Description
If the condition is true, then move the 32-bit value referenced by mem32 to the
floating-point register indicated by RaH.
if (CNDF == TRUE) RaH = RbH
CNDF is one of the following conditions:
Encode
(1)
CNDF
Description
STF Flags Tested
0000
NEQ
Not equal to zero
ZF == 0
0001
EQ
Equal to zero
ZF == 1
0010
GT
Greater than zero
ZF == 0 AND NF == 0
0011
GEQ
Greater than or equal to zero
NF == 0
0100
LT
Less than zero
NF == 1
0101
LEQ
Less than or equal to zero
ZF == 1 AND NF == 1
1010
TF
Test flag set
TF == 1
1011
NTF
Test flag not set
TF == 0
1100
LU
Latched underflow
LUF == 1
1101
LV
Latched overflow
LVF == 1
1110
UNC
Unconditional
None
1111
UNCF
(2)
Unconditional with flag
None
modification
(1)
Values not shown are reserved.
(2)
This is the default operation if no CNDF field is specified. This
condition will allow the ZF, NF, ZI, and NI flags to be modified when
a conditional operation is executed. All other conditions will not
modify these flags.
Flags
This instruction modifies the following flags in the STF register:
Flag
TF
ZI
NI
ZF
NF
LUF
LVF
Modified
No
Yes
Yes
Yes
Yes
No
No
if(CNDF == UNCF)
{
NF = RaH(31); ZF = 0;
if(RaH[30:23] == 0) {ZF = 1; NF = 0;}
NI = RaH(31); ZI = 0;
if(RaH[31:0] == 0) ZI = 1;
}
else No flags modified;
Pipeline
This is a single-cycle instruction.
Example
MOVIZF32
R3H, #8.0
; R3H = 8.0 (0x41000000)
MOVIZF32
R4H, #7.0
; R4H = 7.0 (0x40E00000)
MAXF32
R3H, R4H
; ZF = 0, NF = 0
MOV32
R1H, R3H, GT
; R1H = 8.0 (0x41000000)
See also
SPRUEO2A – June 2007 – Revised August 2008
Instruction Set
89
Содержание TMS320C28 series
Страница 2: ...2 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 12: ...Introduction 12 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 20: ...CPU Register Set 20 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 136: ...Instruction Set 136 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...