I'm trying to understand how the division instruction in FASM works.
If I get it right then it expects the value to divide in the register (e)dx and (e)ax. See accepted answer here: Assembly Language - How to Do Modulo?
After the operation the result is stored in (e)ax. The remainder is stored in (e)dx.
But what happens if I divide a very large number with a very tiny divisor?
Let's say I would store 2 exp. 64 in edx:eax. Then divide it by a number <= 1 . Then the result would be something >= 2 exp. 64 ...
How could that work?
The result wouldn't fit into eax alone.
Can someone help me to understand the issue?