Re: [stella] BMI & BPL question

Subject: Re: [stella] BMI & BPL question
From: "Andrew Davie" <adavie@xxxxxxxxxxxxxxxxx>
Date: Wed, 1 Jul 1998 00:02:56 +1000
>> To check D6 you can use either of these...
>>
>>     lda CXP0FB
>>     bit #0
>>     bvs D6set
>
>But the BIT instruction doesn't support immediate addressing.
>(what a stupid thing to leave out!!!)  So how does this work?



Yes, you are absolutely correct.  I am wondering if my 65816 memories are
clouding my memory of the 6502.  In any case, it was a really dumb thing not
to include an immediate bit instruction.  But yes, simply...

    bit CXP0FB

is all that is required.  D6 and D7 now occupy the V and N flags
respectively.

Cheers
A



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

Current Thread