www.ti.com
Instructions
MOV32 mem32, STF
Move 32-bit STF Register to Memory
Operands
STF
floating-point status register
mem32
points to the 32-bit destination memory
Opcode
LSW: 1110 0010
0000 0000
MSW: 0000 0000
mem32
Description
Copy the floating-point status register, STF, to memory.
[mem32] = STF
Flags
This instruction modifies the following flags in the STF register:
Flag
TF
ZI
NI
ZF
NF
LUF
LVF
Modified
No
No
No
No
No
No
No
No flags affected.
Pipeline
This is a single-cycle instruction.
Example 1
MOVW
DP, #0x0280
; DP = 0x0280
MOVIZF32
R0H, #2.0
; R0H = 2.0 (0x40000000)
MOVIZF32
R1H, #3.0
; R1H = 3.0 (0x40400000)
CMPF32
R0H, R1H
; ZF = 0, NF = 1, STF = 0x00000004
MOV32
@0, STF
; [0x00A000] = 0x00000004
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
SPRUEO2A – June 2007 – Revised August 2008
Instruction Set
83
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 ...