www.ti.com
Instructions
MOVIZF32 RaH, #16FHi
Load the Upper 16-bits of a 32-bit Floating-Point Register
Operands
RaH
floating-point register (R0H to R7H)
#16FHi
A 16-bit immediate value that represents the upper 16-bits of an IEEE 32-bit
floating-point value. The low 16-bits of the mantissa are assumed to be all 0.
Opcode
LSW: 1110 1000
0000 0III
MSW: IIII IIII
IIII Iaaa
Description
Load the upper 16-bits of RaH with the value represented by #16FHi and clear the low
16-bits of RaH.
#16FHi is a 16-bit immediate value that represents the upper 16-bits of an IEEE 32-bit
floating-point value. The low 16-bits of the mantissa are assumed to be all 0. This
addressing mode is most useful for constants where the lowest 16-bits of the mantissa
are 0. Some examples are 2.0 (0x40000000), 4.0 (0x40800000), 0.5 (0x3F000000), and
-1.5 (0xBFC00000). #16FHi can be specified in hex or float. That is, -1.5 can be
represented as #-1.5 or #0xBFC0.
MOVIZF32 is an alias for the MOVIZ RaH, #16FHiHex instruction. In the case of
MOVIZF32 the assembler will accept either a hex or float as the immediate value and
encodes it into a MOVIZ instruction. For example, MOVIZF32 RaH, #-1.5 will be
encoded as MOVIZ RaH, 0xBFC0.
RaH[31:16] = #16FHi
RaH[15:0] = 0
Flags
This instruction modifies the following flags in the STF register:
Flag
TF
ZI
NI
ZF
NF
LUF
LVF
Modified
No
No
No
No
No
No
No
Pipeline
This is a single-cycle instruction.
Example
MOVIZF32 R0H, #3.0
; R0H =
3.0 = 0x40400000
MOVIZF32 R1H, #1.0
; R1H =
1.0 = 0x3F800000
MOVIZF32 R2H, #2.5
; R2H =
2.5 = 0x40200000
MOVIZF32 R3H, #-5.5
; R3H = -5.5 = 0xC0B00000
MOVIZF32 R4H, #0xC0B0
; R4H = -5.5 = 0xC0B00000
;
; Load R5H with pi = 3.141593 (0x40490000)
;
MOVIZF32 R5H, #3.141593
; R5H =
3.140625 (0x40490000)
;
; Load R0H with a more accurate pi = 3.141593 (0x40490FDB)
;
MOVIZF32
R0H,#0x4049
; R0H = 0x40490000
MOVXI
R0H,#0x0FDB
; R0H = 0x40490FDB
See also
SPRUEO2A – June 2007 – Revised August 2008
Instruction Set
99
Содержание 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 ...