Re: Re: [stella] signed 8-bit comparisons?

Subject: Re: Re: [stella] signed 8-bit comparisons?
From: Dennis Debro <ddebro@xxxxxxxxxxxxx>
Date: Thu, 4 Mar 2004 16:22:30 -0500
Hi there,

> I think what you want is:
>     LDA    var
>     CMP    #MAX
>     BMI    ltMAX
>     LDA    #MAX
> ltMAX
>     CMP    #MIN
>     BPL    gtMIN
>     LDA    #MIN
> gtMIN
>     STA    var

Wouldn't it be better to use bcc and bcs instead of bmi and bpl?

Take care,
Dennis

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread