Fix the ATX implementation in the M6502 core

This commit is contained in:
Adrian Conlon 2024-01-06 13:10:51 +00:00
parent bd289ed8fb
commit 9334f6ee93
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ int EightBit::MOS6502::execute() noexcept {
case 0xa8: memoryRead(PC()); Y() = through(A()); break; // TAY (implied)
case 0xa9: A() = through(AM_Immediate()); break; // LDA (immediate)
case 0xaa: memoryRead(PC()); X() = through(A()); break; // TAX (implied)
case 0xab: A() = X() = through(AM_Immediate()); break; // *ATX (immediate)
case 0xab: A() = X() = through((A() | 0xee) & AM_Immediate()); break; // *ATX (immediate)
case 0xac: Y() = through(AM_Absolute()); break; // LDY (absolute)
case 0xad: A() = through(AM_Absolute()); break; // LDA (absolute)
case 0xae: X() = through(AM_Absolute()); break; // LDX (absolute)