how to make it?

I want to divide 64 bit trough 64 bit and get a 64 bit result.

I tried to remember "written division" from school, and to
implement it in asm, but my brain sticks...
Posted on 2001-12-10 06:12:20 by beaster
fdiv
depending on format you need after fdiv
fistp for integer
fstp for float
Posted on 2001-12-10 06:38:37 by The Svin
5 675 676 598 029 102 divided by 3 023 589 910 312 105

5 675 676 598 029 102 |3 023 589 910 312 105
"""""""""""""""""""""""""'

5 675 676 598 029 102 | 3 023 589 910 312 105

2 652 086 687 716 997 | 1

;you take the one and you multiply it by each digit of the divisor, and the difference between the number at the left and the divisor goes to the rest. So, you obtain 1 as integer result and your rest is 2 652 086 687 716 997 (sorry if some digit is wrong, this divisions suck). If you put down a "0" you can continue making your result a float number. Doing this you can also do arithmetic with bigger numbers.

I hope this is useful.
Posted on 2001-12-10 12:46:25 by CodeLover
thanx, I think nothing speaks against using fpu for this task.
Posted on 2001-12-12 04:46:18 by beaster