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

Re: LDA C08C,X



"Redskull" (redskulldc@DESPAM.yahoo.com.au) writes:
> 
> "Bryan Parkoff" <BParkoff@satx.rr.com> wrote in message
> Ruacnea5kJIx2sWjXTWQlg@giganews.com">news:Ruacnea5kJIx2sWjXTWQlg@giganews.com...
>>  Why do EOR #D5 have to be used instead of CMP like AA and 96.
> 
> No particular reason that I can see.
> 
I have a vague feeling that this is  a bit of trick code.

I can't explain it, since it's been so long, but I think there is
a good reason for EOR'ing rather than cmp'ing.  I just can't remember
it.

Had the next line or two been posted, the reason might be more obvious.

Both fiddle with the sign and zero bits, while CMP fiddles with the carry bit
and EOR does not.  That might be a reason, though again it depends on
the rest of the code.

   Micahel