mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-03-11 05:41:49 +00:00
Only DJNZ has the extra tick (presumably to decrement the B register)
This commit is contained in:
@@ -558,7 +558,6 @@ namespace Z80
|
||||
|
||||
protected override bool JumpRelativeConditional(bool condition)
|
||||
{
|
||||
this.Tick();
|
||||
var offset = this.FetchByte();
|
||||
if (condition)
|
||||
{
|
||||
@@ -1156,6 +1155,7 @@ namespace Z80
|
||||
this.ExxAF();
|
||||
break;
|
||||
case 2: // DJNZ d
|
||||
this.Tick();
|
||||
_ = this.JumpRelativeConditional(--this.B != 0);
|
||||
break;
|
||||
case 3: // JR d
|
||||
|
||||
Reference in New Issue
Block a user