Instructions
www.ti.com
MOV32 STF, mem32
Move 32-bit Value from Memory to the STF Register
Operands
STF
floating-point unit status register
mem32
pointer to the 32-bit source memory location
Opcode
LSW: 1110 0010
1000 0000
MSW: 0000 0000
mem32
Description
Move from memory to the floating-point unit's status register STF.
STF = [mem32]
Flags
This instruction modifies the following flags in the STF register:
Flag
TF
ZI
NI
ZF
NF
LUF
LVF
Modified
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Restoring status register will overwrite all flags.
Pipeline
This is a single-cycle instruction.
Example 1
MOVW
DP, #0x0300
; DP = 0x0300
MOV
@2, #0x020C
; [0x00C002] = 0x020C
MOV
@3, #0x0000
; [0x00C003] = 0x0000
MOV32
STF, @2
; STF = 0x0000020C
Example 2
MOV32
*SP++, STF
; Store STF in stack
MOVF32
R2H, #3.0
; R2H = 3.0 (0x40400000)
MOVF32
R3H, #5.0
; R3H = 5.0 (0x40A00000)
CMPF32
R2H, R3H
; ZF = 0, NF = 1, STF = 0x00000004
MOV32
R3H, R2H, LT ; R3H = 3.0 (0x40400000)
MOV32
STF, *--SP
; Restore STF from stack
See also
Instruction Set
92
SPRUEO2A – June 2007 – Revised August 2008
Summary of Contents for TMS320C28 series
Page 2: ...2 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Page 12: ...Introduction 12 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Page 20: ...CPU Register Set 20 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Page 136: ...Instruction Set 136 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...