MCCNDD 16BitDest {, CNDF}
Call Conditional Delayed
Operands
16BitDest
16-bit destination if condition is true
CNDF
Optional condition to be tested
Opcode
LSW: dest dest dest dest
MSW: 0111 1001 1001 cndf
Description
If the specified condition is true, then store the return address in the RPC field of MSTF
and make the call by adding the signed 16BitDest value to the MPC value. Otherwise,
continue code execution without making the call. If the address overflows, it wraps
around. Therefore a value of "0xFFFE" will put the MPC back to the MCCNDD instruction.
Please refer to the pipeline section for important information regarding this instruction.
if (CNDF == TRUE)
{
RPC = return address;
MPC += 16BitDest;
};
CNDF is one of the following conditions:
Encode
CNDF
Description
MSTF 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 OR 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
Unconditional with flag
modification
None
(1)
Values not shown are reserved.
(2)
This is the default operation if no CNDF field is specified. This condition will
allow the ZF and NF flags to be modified when a conditional operation is
executed. All other conditions will not modify these flags.
Restrictions
The MCCNDD instruction is not allowed three instructions before or after a MBCNDD,
MCCNDD, or MRCNDD instruction. Refer to the Pipeline section for more details.
Flags
This instruction does not modify flags in the MSTF register.
Flag
TF
ZF
NF
LUF
LVF
Modified
No
No
No
No
No
Control Law Accelerator (CLA)
610
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......