Re: A82: fast multiply...


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

Re: A82: fast multiply...



At 10:16 PM 8/3/97 -0400, you wrote:
>In a message dated 97-08-03 05:44:16 EDT, you write:
>
><< (by the way: is there a fast way for integer division, too?) >>
>well, to divide or multiply by a power of 2, just shift

Only shift if you are dividing.  Otherwise you can do it faster by add a,a
or add hl,hl.


                 Thomas J. Hruska -- thruska@tir.com
Shining Light Productions -- "Meeting the needs of fellow programmers"
         http://www.geocities.com/SiliconValley/Heights/8504
                    http://shinelight.home.ml.org


References: