Instructions
www.ti.com
F32TOUI16 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 1110
MSW: 0000 0000
00bb baaa
Description
Convert the 32-bit floating point value in RbH to an unsigned 16-bit integer value and
truncate to zero. The result will be stored in RaH. To instead round the integer to the
nearest even value use the F32TOUI16R instruction.
RaH(15:0)
= F32ToUI16(RbH)
RaH(31:16) = 0x0000
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:
F32TOUI16
RaH, RbH
; 2 pipeline cycles (2p)
NOP
; 1 cycle delay or non-conflicting instruction
; <-- F32TOUI16 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
R4H, #9.0
; R4H = 9.0 (0x41100000)
F32TOUI16
R5H, R4H
; R5H (15:0) = F32TOUI16 (R4H)
; R5H (31:16) = 0x0000
MOVIZF32
R6H, #-9.0 ; R6H = -9.0 (0xC1100000)
; <-- F32TOUI16 complete, R5H (15:0)
= 9.0 (0x0009)
;
R5H (31:16) = 0.0 (0x0000)
F32TOUI16
R7H, R6H
; R7H (15:0) = F32TOUI16 (R6H)
; R7H (31:16) = 0x0000
NOP
; 1 Cycle delay for F32TOUI16 to complete
; <-- F32TOUI16 complete, R7H (15:0)
= 0.0 (0x0000)
;
R7H (31:16) = 0.0 (0x0000)
See also
Instruction Set
54
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 ...