Instructions
www.ti.com
I32TOF32 RaH, mem32
Convert 32-bit Integer to 32-bit Floating-Point Value
Operands
RaH
floating-point destination register (R0H to R7H)
mem32
32-bit source for the MOV32 operation. mem32 means that the operation can only
address memory using any of the direct or indirect addressing modes supported by the
C28x CPU
Opcode
LSW: 1110 0010
1000 1000
MSW: 0000 0aaa
mem32
Description
Convert the 32-bit signed integer indicated by the mem32 pointer to a 32-bit floating
point value and store the result in RaH.
RaH = I32ToF32[mem32]
Flags
This instruction does not affect any flags:
Flag
TF
ZI
NI
ZF
NF
LUF
LVF
Modified
No
No
No
No
No
No
No
Pipeline
This is a 2 pipeline cycle (2p) instruction. That is:
I32TOF32
RaH, mem32
; 2 pipeline cycles (2p)
NOP
; 1 cycle delay or non-conflicting instruction
; <-- I32TOF32 completes, RaH updated
NOP
Any instruction in the delay slot must not use RaH as a destination register or use RaH
as a source operand.
Example
MOVW
DP, #0x0280
; DP = 0x0280
MOV
@0, #0x1111
; [0x00A000] = 4369 (0x1111)
MOV
@1, #0x1111
; [0x00A001] = 4369 (0x1111)
; Value of the 32 bit signed integer present in
; 0x00A001 and 0x00A000 is +286331153 (0x11111111)
I32TOF32
R1H, @0
; R1H = I32TOF32 (0x11111111)
NOP
; 1 Cycle delay for I32TOF32 to complete
; <-- I32TOF32 complete, R1H = 286331153 (0x4D888888)
See also
Instruction Set
60
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 ...