Fuse fixes: Correct JR cc from unnecessary extra read of offset.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2019-08-15 14:30:12 +01:00
parent accdf19805
commit 84284d62b5
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}