Re: A86: Re: new ideas...


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

Re: A86: Re: new ideas...




Um k, but why not use ADD A,A since it works all the time like you expect it
to? In your routine, what if there was a bit in the carry flag? oops.

----- Original Message -----
From: Cassady Roop <croop@oregontrail.net>
To: <assembly-86@lists.ticalc.org>
Sent: Friday, December 31, 1999 2:45 PM
Subject: Re: A86: Re: new ideas...


> Well, whether it's rotative or additive multiplication, is it not still
> multiplication either way?
>
> 00000010  starting value =2
> rla   -> 00000100     (4)
> rla   -> 00001000     (8)
> rla   -> 00010000     (16)
> sub 2 -> 00001110     (14)
>
> 2*7=14
>
> True, this will only work with small numbers (before bit rotation wraps
> back around to bit 0), but it still results in the desired answer.  I
> did not, however, intend to mean that this is a generic mult routine,
> which it definitely is not, because this would only work on a small
> range of numbers.
>
> Cassady Roop




Follow-Ups: References: