Fix M6502 JAM implementation

This commit is contained in:
Adrian Conlon committed 2024-09-13 20:56:24 +01:00
1 parent 25f3508e84
commit 455dedbb02
1 file changed
+11 -1
+11 -1
View File
@@ -602,7 +602,17 @@ void EightBit::MOS6502::axs() noexcept {
}
void EightBit::MOS6502::jam() noexcept {
BUS().ADDRESS() = PC()--;
BUS().ADDRESS() = PC();
memoryRead();
memoryRead(0xffff);
BUS().ADDRESS().low = 0xfe;
memoryRead();
memoryRead();
BUS().ADDRESS().low = 0xff;
memoryRead();
memoryRead();
memoryRead();
memoryRead();
memoryRead();
memoryRead();
}