Re: [stella] signed 8-bit comparisons?

Subject: Re: [stella] signed 8-bit comparisons?
From: "Eric Ball" <ericball@xxxxxxxxxxxx>
Date: Thu, 4 Mar 2004 07:16:57 -0500
See http://www.6502.org/tutorials/compare_instructions.html

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


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


Current Thread