News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Division problem

Started by Ani_Skywalker, October 30, 2011, 12:33:57 AM

Previous topic - Next topic

raymond

If you ever need to divide a large number exceeding 32 bits by a divisor that would be smaller than the upper 32 bits of that large number, it is still possible to perform a division to obtain the quotient (which would be larger than 32 bits) and the remainder, but you would need a special approach which cannot be done with a single instruction (unless you switch to 64-bit assembly :bg).
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

dedndave

yes - you can learn about the FPU in Ray's tutorial
and - he also has a nice floating point library   :U

http://www.ray.masmcode.com/

the FPU allows you to handle very large and very small values

Farabi

Cek for 0, division by zero sometime causing GPF on my old machine.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Ani_Skywalker

Amazing responses! Exactly what you are looking for as a beginner. Big thanks!

About the FPU-library, do you guys know if Iczelion guides through it in his tutorials? I'm at level tutorial 15 at the moment. Trying to use pure assembly more then macros like he does. Besides that I find the tutorial to be very useful. He have a part about multithread programming and I always wondered how to do that. Same goes for FPU-programming.


dedndave

no - Iczelion does not go into the FPU - that is how to get started with windows
Ray's tutorial is great - the FPU is not as hard as one might think

Ani_Skywalker

I love Ray's page already :)