cancel
Showing results for 
Search instead for 
Did you mean: 

Algorithm of division of two 8 bit numbers

mailtoarup
Associate II
Posted on March 24, 2003 at 06:37

Algorithm of division of two 8 bit numbers

2 REPLIES 2
mailtoarup
Associate II
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
stephanie
Associate II
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!