Add support for the M6502 undocumented instruction *ANE

This commit is contained in:
Adrian Conlon 2024-01-06 23:10:53 +00:00
parent 3ebc321c59
commit 70c316fd4f
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ int EightBit::MOS6502::execute() noexcept {
case 0x88: memoryRead(PC()); Y() = dec(Y()); break; // DEY (implied)
case 0x89: AM_Immediate(); break; // *NOP (immediate)
case 0x8a: memoryRead(PC()); A() = through(X()); break; // TXA (implied)
case 0x8b: break;
case 0x8b: A() = through((A() | 0xee) & X() & AM_Immediate()); break; // *ANE (immediate)
case 0x8c: memoryWrite(Address_Absolute(), Y()); break; // STY (absolute)
case 0x8d: memoryWrite(Address_Absolute(), A()); break; // STA (absolute)
case 0x8e: memoryWrite(Address_Absolute(), X()); break; // STX (absolute)