Instructions
www.ti.com
I16TOF32 RaH, RbH
Convert 16-bit Integer to 32-bit Floating-Point Value
Operands
RaH
floating-point destination register (R0H to R7H)
RbH
floating-point source register (R0H to R7H)
Opcode
LSW: 1110 0110
1000 1101
MSW: 0000 0000
00bb baaa
Description
Convert the 16-bit signed integer in RbH to a 32-bit floating point value and store the
result in RaH.
RaH = I16ToF32 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:
I16TOF32
RaH, RbH
; 2 pipeline cycles (2p)
NOP
; 1 cycle delay or non-conflicting instruction
; <-- I16TOF32 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
MOVIZ
R0H, #0x0000
; R0H[31:16] = 0.0 (0x0000)
MOVXI
R0H, #0x0004
; R0H[15:0]
= 4.0 (0x0004)
I16TOF32
R1H, R0H
; R1H = I16TOF32 (R0H)
MOVIZ
R2H, #0x0000
; R2H[31:16] = 0.0 (0x0000)
; <--I16TOF32 complete, R1H = 4.0 (0x40800000)
MOVXI
R2H, #0xFFFC
; R2H[15:0] = -4.0 (0xFFFC)
I16TOF32
R3H, R2H
; R3H = I16TOF32 (R2H)
NOP
; 1 Cycle delay for I16TOF32 to complete
; <-- I16TOF32 complete, R3H = -4.0 (0xC0800000)
See also
Instruction Set
58
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 ...