Joined: 09 May 2003 Posts: 25985 Location: The netherlands
Posted: Mon Jul 18, 2011 7:47 am Post subject:
I don't have much experience with floating point values and assembler, but the FSQRT instruction will calculate the root stored in ST(0) and place the result in ST(0)
(So I'd guess use fld or fild to push the value in the fpu, then FSQRT to get the square root from it, and then fstp or fistp to store it back to memory) _________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum