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 23:10:50 -0500
Hi Kirk,
 
> If I'm reading
> http://www.6502.org/tutorials/compare_instructions.html
> correctly, bcc/bcs vs bmi/bpl is the whole point of my
> question and Eric's response: bcc/bcs work if you're
> treating your 8-bits as an unsigned byte, but if you
> want your %11111111 to come across as LESS than your
> %00000001, (ala 2's complement) then the code above is
> correct.

Doh! You're right. Excuse me while I wipe the egg off my face :-)

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