From 37431d08bc37d58b16fc89d04548cd1537fdb0dd Mon Sep 17 00:00:00 2001 From: Adrian Conlon <98398945+AdrianConlon@users.noreply.github.com> Date: Sun, 4 May 2025 17:47:19 +0100 Subject: [PATCH] Correct LD?R/CP?R block methods. 4 problem instuctions now. --- Z80/Z80.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Z80/Z80.cs b/Z80/Z80.cs index 57c4626..0e93747 100644 --- a/Z80/Z80.cs +++ b/Z80/Z80.cs @@ -1073,6 +1073,7 @@ namespace Z80 this.DecrementPC(); this.MEMPTR.Assign(this.PC); this.DecrementPC(); + this.AdjustXY(this.PC.High); } this.Tick(5); @@ -1083,6 +1084,7 @@ namespace Z80 this.DecrementPC(); this.MEMPTR.Assign(this.PC); this.DecrementPC(); + this.AdjustXY(this.PC.High); } this.Tick(5); @@ -1107,6 +1109,7 @@ namespace Z80 this.DecrementPC(); this.MEMPTR.Assign(this.PC); this.DecrementPC(); + this.AdjustXY(this.PC.High); this.Tick(5); } @@ -1117,6 +1120,7 @@ namespace Z80 this.DecrementPC(); this.MEMPTR.Assign(this.PC); this.DecrementPC(); + this.AdjustXY(this.PC.High); this.Tick(3); } else