Re: A83: NOW I REALLY DON'T KNOW WHAT'S GOING ON


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

Re: A83: NOW I REALLY DON'T KNOW WHAT'S GOING ON




In that case, just an xor 3 would do the job. Just wanted to keep as much of
Alan's algorithm as possible.

Linus

On 20-Aug-98, Joe Wingbermuehle wrote:

>hehe
>how about this:

> sub 5
> xor 1
> add a,5

>a little simpler and better no?

>-----Original Message-----
>From: Linus Akesson <lairfight@softhome.net>
>To: Alan C Johnson <assembly-83@lists.ticalc.org>
>Date: Thursday, August 20, 1998 11:16 AM
>Subject: Re: A83: NOW I REALLY DON'T KNOW WHAT'S GOING ON


>>
>>On 18-Aug-98, Alan C Johnson wrote:
>>
>>>dec   a
>>>cp    PROTPROGOBJ
>>>jp    z,NextStep
>>>ld    a,PROGOBJ
>>
>>
>>If the old type was 5:
>>
>>* dec a would set it to 4
>>* it would be compared to 6 (PROTPROGOBJ)
>>* no jump would thus take place
>>* and the new type would be 5 (same as before)
>>
>>If the old type was 6:
>>
>>* dec a would set it to 5
>>* it would be compared to 6 (PROTPROGOBJ)
>>* no jump would thus take place
>>* and the new type would be 5 again.
>>
>>Fix: Change dec to inc!
>>
>>Linus
>>




References: