1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
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

    chroot

    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

    rcgldr

    User Avatar
    Homework Helper

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

    http://www.apfloat.org
     
  5. Jun 10, 2007 #4
    Thanks for the help :smile:
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: ASM Question
  1. Memory Flags and ASM (Replies: 8)

  2. Randomization Question (Replies: 4)

Loading...