www.ti.com
Instructions
MOVI32 RaH, #32FHex
Load the 32-bits of a 32-bit Floating-Point Register with the immediate
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 register (R0H to R7H)
#32FHex
A 32-bit immediate value that represents an IEEE 32-bit floating-point value.
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 only accepts a hex value as the immediate operand. To specify the
immediate value with a floating-point representation use the MOVF32 RaH, #32F
instruction.
Load the 32-bits of RaH with the immediate 32-bit hex value represented by #32Fhex.
#32Fhex is a 32-bit immediate hex value that represents the IEEE 32-bit floating-point
value of a floating-point number. The assembler will only accept a hex immediate value.
That is, 3.0 can only be represented as #0x40400000. #3.0 will result in an error.
RaH = #32FHex
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 #32FHex, this instruction takes one or two cycles. If all of the lower
16-bits of #32FHex are zeros, then assembler will convert MOVI32 to the MOVIZ
instruction. If the lower 16-bits of #32FHex are not zeros, then assembler will convert
MOVI32 to a MOVIZ and a MOVXI instruction.
Example
MOVI32
R1H, #0x40400000
; R1H = 0x40400000
; Assembler converts this instruction as
; MOVIZ R1H, #0x4040
MOVI32
R2H, #0x00000000
; R2H = 0x00000000
; Assembler converts this instruction as
; MOVIZ R2H, #0x0
MOVI32
R3H, #0x40004001
; R3H = 0x40004001
; Assembler converts this instruction as
; MOVIZ R3H, #0x4000
; MOVXI R3H, #0x4001
MOVI32
R4H, #0x00004040
; R4H = 0x00004040
; Assembler converts this instruction as
; MOVIZ R4H, #0x0000
; MOVXI R4H, #0x4040
See also
SPRUEO2A – June 2007 – Revised August 2008
Instruction Set
97
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 ...