Manually convert int to float

Started by γRB, July 02, 2013, 09:20:57 PM

Previous topic - Next topic

γRB

I was kinda curious about that, since well, with the loads of projects over here, I needed it anytime soon. I know you need to add the mantissa and all that shizzle. But has any of you made an Assembly code for it?

dcx2

Search forum for "int float".

Integer to floating point conversion example: http://wiird.l0nk.org/forum/index.php/topic,6593.0.html

Bonus points, float to int conversion example: http://wiird.l0nk.org/forum/index.php/topic,9398.0.html

Trivia: The second example was written by me without even having access to the game, purely based on Thomas83lin's 04 code.  ;D

Bully@Wiiplaza

The 2nd link was a great topic since it contained everything I needed to do the conversion back and forth.
My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully