Creator
08-05-2009, 11:54 AM
#Float to Integer
cvt.w.s $
mfc1 $
#Integer to Float
mtc1 $
cvt.s.w $
Integer: The Basic Hex (0x00000001 - 0xFFFFFFFF)
Float: Whole Numbers in Digits (0x3F800000 = 1)
Don't really know Just used it once awhile back..
You just the Float You Want.
Example:
#3 in FLOAT to 3 in Interger
cvt.w.s $f4, $f4
mfc1 $t0,$f4
#3 in Interger to 3 in FLOAT
mtc1 $t0, $f0
cvt.s.w $f0, $f0
So Just Use Float Registers and Temporary Variables:
#Float Register
$fx
#Temporary Variables
$tx
Enjoy Coding,
-Creator
cvt.w.s $
mfc1 $
#Integer to Float
mtc1 $
cvt.s.w $
Integer: The Basic Hex (0x00000001 - 0xFFFFFFFF)
Float: Whole Numbers in Digits (0x3F800000 = 1)
Don't really know Just used it once awhile back..
You just the Float You Want.
Example:
#3 in FLOAT to 3 in Interger
cvt.w.s $f4, $f4
mfc1 $t0,$f4
#3 in Interger to 3 in FLOAT
mtc1 $t0, $f0
cvt.s.w $f0, $f0
So Just Use Float Registers and Temporary Variables:
#Float Register
$fx
#Temporary Variables
$tx
Enjoy Coding,
-Creator