ASM Newbie Question: 10/6 Byte Division

  • Thread starter Thread starter Brazilian Fan
  • Start date Start date
  • Tags Tags
    Division
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
3 replies · 2K views
Brazilian Fan
Messages
2
Reaction score
0
Hi, I am new here and I got a newbie ASM Question:

How to divide, say, a 10 by 6 bytes number if the DIV (or IDIV) opcode only supports a 8 by 4 Bytes division?

Thanks in advance
 
Last edited:
Physics news on Phys.org
One way would be to simply use the same algorithm you used in grade-school for long division.

- Warren