Jump to content

How to ARM multiply R0 value to a float number


Go to solution Solved by Guest,

3 posts in this topic

Recommended Posts

  • Solution
Posted (edited)

Wrong section bro :p

 

And try this, just dividing 4 by 3 for 1.333... :)

 

VMOV.F32 S0, #4.0
VMOV.F32 S1, #3.0
VDIV.F32 S0, S0, S1
VMUL.F32 S0, #x //x = whatever you want 1.3 multiplied by
VMOV R0, S0
Updated by Guest
Posted

Wrong section bro :p

 

And try this, just dividing 4 by 3 for 1.333... :)

 

VMOV.F32 S0, #4.0
VMOV.F32 S1, #3.0
VDIV.F32 S0, S0, S1
VMUL.F32 S0, #x //x = whatever you want 1.3 multiplied by
VMOV R0, S0

 

GIVE THIS MAN A MEDAL!

 

 

 

PS: Sorry for posting on wrong section. I was in a rush, read the ARM manual, found some os these functions, but didn't get a clue on doing that! :(

 

PS2: THANK YOU. <3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines