[A83] Re: 1 byte division routine


[Prev][Next][Index][Thread]

[A83] Re: 1 byte division routine




> The "standard" way of doing integer division (which is in 
the ROM routine
> for doing so) divides a 16-bit value by an 8-bit value in 
between 710 and
> 748 clock cycles (I didn't count very carefully, but I 
think this is
> right) depending on the data.
It's much slower for small divisors, that's why I
wrote one with shift operations (similarly to
the one you posted below) other than subtractions
in a loop. It's long because it's unrolled. :)

PG






Follow-Ups: References: