www.ti.com
Instructions
F32TOI32 RaH, RbH
Convert 32-bit Floating-Point Value to 32-bit Integer
Operands
RaH
floating-point destination register (R0H to R7H)
RbH
floating-point source register (R0H to R7H)
Opcode
LSW: 1110 0110
1000 1000
MSW: 0000 0000
00bb baaa
Description
Convert the 32-bit floating-point value in RbH to a 32-bit integer value and truncate.
Store the result in RaH.
RaH = F32TOI32(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:
F32TOI32
RaH, RbH
; 2 pipeline cycles (2p)
NOP
; 1 cycle delay or non-conflicting instruction
; <-- F32TOI32 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
MOVF32
R2H, #11204005.0
; R2H = 11204005.0 (0x4B2AF5A5)
F32TOI32
R3H, R2H
; R3H = F32TOI32 (R2H)
MOVF32
R4H, #-11204005.0 ; R4H = -11204005.0 (0xCB2AF5A5)
; <-- F32TOI32 complete,
; R3H = 11204005 (0x00AAF5A5)
F32TOI32
R5H, R4H
; R5H = F32TOI32 (R4H)
NOP
; 1 Cycle delay for F32TOI32 to complete
; <-- F32TOI32 complete,
; R5H = -11204005 (0xFF550A5B)
See also
SPRUEO2A – June 2007 – Revised August 2008
Instruction Set
53
Содержание 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 ...