From bb6bcb9e70cbf35e31a376ace9b2565d614c8bda Mon Sep 17 00:00:00 2001 From: Adrian Conlon <98398945+AdrianConlon@users.noreply.github.com> Date: Mon, 5 Aug 2024 17:09:52 +0100 Subject: [PATCH] Fix "JAM" for latest version test revion --- M6502/M6502.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/M6502/M6502.cs b/M6502/M6502.cs index bdfb838..edf93cd 100644 --- a/M6502/M6502.cs +++ b/M6502/M6502.cs @@ -250,7 +250,16 @@ namespace EightBit private void Jam() { this.Bus.Address.Assign(this.PC); - --this.PC.Word; + this.MemoryRead(); + this.MemoryRead(0xff, 0xff); + this.Bus.Address.Low = 0xfe; + this.MemoryRead(); + this.MemoryRead(); + this.Bus.Address.Low = 0xff; + this.MemoryRead(); + this.MemoryRead(); + this.MemoryRead(); + this.MemoryRead(); this.MemoryRead(); this.MemoryRead(); }