Instructions
www.ti.com
MOVF32 RaH, #32F
Load the 32-bits of a 32-bit Floating-Point Register
Operands
This instruction is an alias for MOVIZ and MOVXI instructions. The second operand is
translated by the assembler such that the instruction becomes:
MOVIZ RaH, #16FHiHex
MOVXI RaH, #16FLoHex
RaH
floating-point destination register (R0H to R7H)
#32F
immediate float value represented in floating-point representation
Opcode
LSW: 1110 1000 0000 0III (opcode of MOVIZ RaH, #16FHiHex)
MSW: IIII IIII IIII Iaaa
LSW: 1110 1000 0000 1III (opcode of MOVXI RaH, #16FLoHex)
MSW: IIII IIII IIII Iaaa
Description
Note: This instruction accepts the immediate operand only in floating-point
representation. To specify the immediate value as a hex value (IEEE 32-bit floating-
point format) use the MOVI32 RaH, #32FHex instruction.
Load the 32-bits of RaH with the immediate float value represented by #32F.
#32F is a float value represented in floating-point representation. The assembler will only
accept a float value represented in floating-point representation. That is, 3.0 can only be
represented as #3.0. #0x40400000 will result in an error.
RaH = #32F
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
Pipeline
Depending on #32FH, this instruction takes one or two cycles. If all of the lower 16-bits
of the IEEE 32-bit floating-point format of #32F are zeros, then the assembler will
convert MOVF32 into only MOVIZ instruction. If the lower 16-bits of the IEEE 32-bit
floating-point format of #32F are not zeros, then the assembler will convert MOVF32 into
MOVIZ and MOVXI instructions.
Example
MOVF32
R1H, #3.0
; R1H = 3.0 (0x40400000)
; Assembler converts this instruction as
; MOVIZ R1H, #0x4040
MOVF32
R2H, #0.0
; R2H = 0.0 (0x00000000)
; Assembler converts this instruction as
; MOVIZ R2H, #0x0
MOVF32
R3H, #12.265
; R3H = 12.625 (0x41443D71)
; Assembler converts this instruction as
; MOVIZ R3H, #0x4144
; MOVXI R3H, #0x3D71
See also
Instruction Set
96
SPRUEO2A – June 2007 – Revised August 2008
Содержание TMS320C28 series
Страница 2: ...2 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 12: ...Introduction 12 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 20: ...CPU Register Set 20 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 136: ...Instruction Set 136 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...