mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-06-11 15:29:37 +00:00
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:
parent
accdf19805
commit
84284d62b5
|
@ -181,9 +181,10 @@ namespace EightBit
|
||||||
|
|
||||||
protected bool JumpRelativeConditional(bool condition)
|
protected bool JumpRelativeConditional(bool condition)
|
||||||
{
|
{
|
||||||
var offset = (sbyte)this.FetchByte();
|
var offsetAddress = this.PC.Word++;
|
||||||
if (condition)
|
if (condition)
|
||||||
{
|
{
|
||||||
|
var offset = (sbyte)this.BusRead(offsetAddress);
|
||||||
this.JumpRelative(offset);
|
this.JumpRelative(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user