Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

ASM Question

  1. Jun 9, 2007 #1
    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: Jun 9, 2007
  2. jcsd
  3. Jun 9, 2007 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    One way would be to simply use the same algorithm you used in grade-school for long division.

    - Warren
  4. Jun 10, 2007 #3


    User Avatar
    Homework Helper

    Extended precision math can get tricky. Here's a link to a web site that includes source and documentation:

  5. Jun 10, 2007 #4
    Thanks for the help :smile:
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook