mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-04-26 21:18:36 +00:00
Fix M6502 JAM implementation
This commit is contained in:
1 parent
25f3508e84
commit
455dedbb02
1 file changed
+11
-1
+11
-1
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user