Instructions
www.ti.com
F32TOUI32 RaH, RbH
Convert 32-bit Floating-Point Value to 16-bit Unsigned Integer
Operands
RaH
floating-point destination register (R0H to R7H)
RbH
floating-point source register (R0H to R7H)
Opcode
LSW: 1110 0110
1000 1010
MSW: 0000 0000
00bb baaa
Description
Convert the 32-bit floating-point value in RbH to an unsigned 32-bit integer and store the
result in RaH.
RaH
= F32ToUI32(RbH)
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:
F32TOUI32
RaH, RbH
; 2 pipeline cycles (2p)
NOP
; 1 cycle delay or non-conflicting instruction
; <-- F32TOUI32 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
MOVIZF32
R6H, #12.5
; R6H = 12.5 (0x41480000)
F32TOUI32
R7H, R6H
; R7H = F32TOUI32 (R6H)
MOVIZF32
R1H, #-6.5
; R1H = -6.5 (0xC0D00000)
; <-- F32TOUI32 complete, R7H = 12.0 (0x0000000C)
F32TOUI32
R2H, R1H
; R2H = F32TOUI32 (R1H)
NOP
; 1 Cycle delay for F32TOUI32 to complete
; <-- F32TOUI32 complete, R2H = 0.0 (0x00000000)
See also
Instruction Set
56
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 ...