does anyone know how to convert an integer (3) to floating point single (3.0) ?

it tried this but got an error bc of the $t3
cvt.w.s $f4, $f4, $t3

i have a value stored in $t3 register and need to move it from there to a fp register like $f6. whqat can i do?

try this

float to int
=======
cvt.w.s $f4, $f4
mfc1 $t0,$f4


int to float
=======
mtc1 $t0, $f0
cvt.s.w $f0, $f0


kaliko

does anyone know how to convert an integer (3) to floating point single (3.0) ?

it tried this but got an error bc of the $t3
cvt.w.s $f4, $f4, $t3

i have a value stored in $t3 register and need to move it from there to a fp register like $f6. whqat can i do?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.