Coupld of small readability changes

This commit is contained in:
Adrian Conlon
2026-03-21 09:49:09 +00:00
parent 0029427d6f
commit 45a57eea86

View File

@@ -1315,7 +1315,11 @@ namespace Z80
break;
case 1: // 8-bit loading
if (!(memoryZ && memoryY))
if (memoryZ && memoryY)
{
this.LowerHALT(); // Exception (replaces LD (HL), (HL))
}
else
{
var normal = true;
if (this._displaced)
@@ -1367,10 +1371,6 @@ namespace Z80
this.R(y, value);
}
}
else
{
this.LowerHALT(); // Exception (replaces LD (HL), (HL))
}
break;
case 2:
@@ -2334,7 +2334,7 @@ namespace Z80
private void ReadPort(byte port)
{
this.Bus.Address.Assign(port, this.Bus.Data = this.A);
this.Bus.Address.Assign(port, this.A);
this.ReadPort();
this.MEMPTR.Increment();
}