MSETFLG FLAG, VALUE
Set or Clear Selected Floating-Point Status Flags
Operands
FLAG
8-bit mask indicating which floating-point status flags to change.
VALUE
8-bit mask indicating the flag value: 0 or 1.
Opcode
LSW: FFFF FFFF VVVV VVVV
MSW: 0111 1001 1100 0000
Description
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 will be
changed. That is, if a FLAG bit is set to 1 it indicates that flag will be changed; all other
flags will not be modified. The bit mapping of the FLAG field is:
9
8
7
6
5
4
3
2
1
0
RNDF
32
Reserved
TF
Reserved
ZF
NF
LUF
LVF
The VALUE field indicates the value the flag should be set to: 0 or 1.
Flags
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.
Pipeline
This is a single-cycle instruction.
Example
To make it easier and legible, the assembler accepts a FLAG=VALUE syntax for the
MSTFLG operation as shown below:
MSETFLG RNDF32=0, TF=0, NF=1; FLAG = 11000100; VALUE = 00XXX1XX;
See also
MMOV32 mem32, MSTF
MMOV32 MSTF, mem32
Control Law Accelerator (CLA)
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
691
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......