mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-03-28 07:21:48 +00:00
Coupld of small readability changes
This commit is contained in:
12
Z80/Z80.cs
12
Z80/Z80.cs
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user