Instructions
www.ti.com
UI32TOF32 RaH, mem32
Convert Unsigned 32-bit Integer to 32-bit Floating-Point Value
Operands
RaH
floating-point destination register (R0H to R7H)
mem32
pointer to 32-bit source memory location
Opcode
LSW: 1110 0010
1000 0100
MSW: 0000 0aaa
mem32
Description
RaH = UI32ToF32[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:
UI32TOF32
RaH, mem32
; 2 pipeline cycles (2p)
NOP
; 1 cycle delay
non-conflicting instruction
; <-- UI32TOF32 completes, RaH updated
NOP
Any instruction in the delay slot must not use RaH as a destination register or as a
source operand.
Example
; unsigned long X
; float Y, M, B
; ...
; Calculate Y = (float)X * M + B
;
UI32TOF32
R0H, *-SP[2]
; R0H = (float)X
MOV32
R1H, *-SP[6]
; R1H = M
; <-- Conversion complete, R0H valid
MPYF32
R0H, R1H, R0H
; R0H = (float)X * M
MOV32
R1H, *-SP[8]
; R1H = B
; <-- MPYF32 complete, R0H valid
ADDF32
R0H, R0H, R1H
; R0H = Y = (float)X * M + B
NOP
; <-- ADDF32 complete, R0H valid
MOV32
*-[SP], R0H
; Store Y
See also
Instruction Set
132
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 ...