[stella] Question about opcode ANE ($8B)

Subject: [stella] Question about opcode ANE ($8B)
From: "Dennis Debro" <dennis@xxxxxxxxxxxxxxx>
Date: Wed, 29 Jun 2005 17:46:32 -0400
Hi there,

I was reading up on opcode ANE (also known as XAA). From what I read it's
the same as...
TXA
AND #<imm value>

It seems to work in Z26. Then I tried the value #$15 and I don't get my
desired results.

Here are my results if x is #$ff
<imm value>.....<result>
   #$40           #$40 ......... PASS
   #$AA           #$AA ......... PASS
   #$15           #$04 ......... FAIL :-(

Does anyone know of any limitations on this opcode? Is this what I would
see on the real hardware and the 6502/7?

Take care,
Dennis

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

Current Thread