www.ti.com
Instructions
I16TOF32 RaH, mem16
Convert 16-bit Integer to 32-bit Floating-Point Value
Operands
RaH
floating-point destination register (R0H to R7H)
mem316
16-bit source memory location to be converted
Opcode
LSW: 1110 0110
1100 1000
MSW: 0000 0aaa
mem16
Description
Convert the 16-bit signed integer indicated by the mem16 pointer to a 32-bit
floating-point value and store the result in RaH.
RaH = I16ToF32[mem16]
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, mem16
; 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
MOVW
DP, #0x0280
; DP = 0x0280
MOV
@0, #0x0004
; [0x00A000] = 4.0 (0x0004)
I16TOF32
R0H, @0
; R0H = I16TOF32 [0x00A000]
MOV
@1, #0xFFFC
; [0x00A001] = -4.0 (0xFFFC)
; <--I16TOF32 complete, R0H = 4.0 (0x40800000)
I16TOF32
R1H, @1
; R1H = I16TOF32 [0x00A001]
NOP
; 1 Cycle delay for I16TOF32 to complete
; <-- I16TOF32 complete, R1H = -4.0 (0xC0800000)
See also
SPRUEO2A – June 2007 – Revised August 2008
Instruction Set
59
Содержание 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 ...