Skip to main content
Visitor II
March 24, 2003
Question

Algorithm of division of two 8 bit numbers

  • March 24, 2003
  • 2 replies
  • 677 views
Posted on March 24, 2003 at 06:37

Algorithm of division of two 8 bit numbers

    This topic has been closed for replies.

    2 replies

    Visitor II
    March 8, 2003
    Posted on March 08, 2003 at 01:41

    hello sir,

    sir i could not understand the algorithm of division of two 8-bit nos given in your ST7-math library.Can u pleas tell me why did u do those:

    Result=RLC number_a and then

    Remaind=RLC Remaind

    A=Remaind-number_b

    and other steps...

    i have attached the program file

    can u help me please..

    thanks

    arup

    ________________

    Attachments :

    ar.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0Hn&d=%2Fa%2F0X0000000bWd%2F298L1jkTA_GguYC2V4pc9VZtC3.PooSR5a_hmFODIx8&asPdf=false
    Visitor II
    March 24, 2003
    Posted on March 24, 2003 at 06:37

    The best way to understand how it works is to take the code and to use the simulator (STVD7 given for free on this side, download page). By performing step by step operation on each instruction, with the help of the debugger (allowing to see registers content), it will be easy to understand why it has been done like that! If you find a way to optimize this code, let us know!