Re: A82: multiply by 12
[Prev][Next][Index][Thread]
Re: A82: multiply by 12
that's what I did, but assume that the number to by multiplied is 8-bit and
could possibly overflow into a 9 or even 10-bit state (requiring the use of a
16-bit reg). assume the number to multiply is stored in register E and that
the final answer is stored in bc (even if it's still only 8 bits...if thats
the case then of course b will be 0)
thanx!
~Adamman
In a message dated 98-05-18 21:33:28 EDT, you write:
> double it. (rotate/shift whatever...) (x2)
> double it again (x4)
> save that in a var.
> double the original (x8)
> add the ans and the saved one. (x12)
>
> that should work. (wow... i actually learned something in stuy...)
>
> -Greg
>
>
>
>
> On Mon, 18 May 1998 21:23:05 EDT ADAMMAN106 <ADAMMAN106@aol.com> writes:
> >
> >does anyone know a fast way to multiply a number by 12? I need it for
> >FLine
> >(that substitute for FIND_PIXEL I posted will not work). Please help.
> >Thanks
> >
> >~Adamman
> >
>
> _____________________________________________________________________
> You don't need to buy Internet access to use free Internet e-mail.
> Get completely free e-mail from Juno at http://www.juno.com
> Or call Juno at (800) 654-JUNO [654-5866]
>