From f33863126c21250708142a2440a28448e4f7dc18 Mon Sep 17 00:00:00 2001 From: Asnivor Date: Fri, 8 Jun 2018 09:36:32 +0100 Subject: [PATCH] ZXHawk: Fix rendertable generation offset. btime.tap test now passes --- .../Computers/SinclairSpectrum/Machine/ULA.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/Machine/ULA.cs b/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/Machine/ULA.cs index 0bec3a194c..398c0c958f 100644 --- a/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/Machine/ULA.cs +++ b/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/Machine/ULA.cs @@ -327,7 +327,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum for (var t = 0; t < _ula.FrameCycleLength; t++) { - var tStateScreen = t + _ula.InterruptStartTime; + var tStateScreen = t + 1 + _ula.InterruptStartTime; if (tStateScreen < 0) tStateScreen += _ula.FrameCycleLength; @@ -719,7 +719,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum /// public void ReadFloatingBus(int tstate, ref int result) { - int off = 1; + int off = 0; tstate += off; if (tstate >= RenderingTable.Renderer.Length) tstate -= RenderingTable.Renderer.Length;