From 84284d62b5d16b594187dbe2be69f44df8d99e3d Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Thu, 15 Aug 2019 14:30:12 +0100 Subject: [PATCH] Fuse fixes: Correct JR cc from unnecessary extra read of offset. Signed-off-by: Adrian Conlon --- EightBit/IntelProcessor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EightBit/IntelProcessor.cs b/EightBit/IntelProcessor.cs index 429f42e..035884b 100644 --- a/EightBit/IntelProcessor.cs +++ b/EightBit/IntelProcessor.cs @@ -181,9 +181,10 @@ namespace EightBit protected bool JumpRelativeConditional(bool condition) { - var offset = (sbyte)this.FetchByte(); + var offsetAddress = this.PC.Word++; if (condition) { + var offset = (sbyte)this.BusRead(offsetAddress); this.JumpRelative(offset); }