SPRUIW9C October 2021 – March 2024 TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1
Set or Clear Selected Floating-Point Status Flags
FLAG | 8-bit mask indicating which floating-point status flags to change. |
VALUE | 8-bit mask indicating the flag value: 0 or 1. |
LSW: FFFF FFFF VVVV VVVV
MSW: 0111 1001 1100 0000
The MSETFLG instruction is used to set or clear selected floating-point status flags in the MSTF register. The FLAG field is an 11-bit value that indicates which flags are changed. That is, if a FLAG bit is set to 1, that flag is changed; all other flags are not modified. The bit mapping of the FLAG field is:
9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|
RNDF32 | Reserved | TF | Reserved | ZF | NF | LUF | LVF |
The VALUE field indicates the value the flag can be set to: 0 or 1.
This instruction modifies the following flags in the MSTF register:
Flag | TF | ZF | NF | LUF | LVF |
---|---|---|---|---|---|
Modified | Yes | Yes | Yes | Yes | Yes |
Any flag can be modified by this instruction. The MEALLOW and RPC fields cannot be modified with this instruction.
This is a single-cycle instruction.
To make it easier and legible, the assembler accepts a FLAG=VALUE syntax for the MSTFLG operation as:
MSETFLG RNDF32=0, TF=0, NF=1; FLAG = 11000100; VALUE = 00XXX1XX;