Last trivial Z80 update

This commit is contained in:
Adrian Conlon
2025-08-04 18:19:40 +01:00
parent 9d208de9bb
commit 52ea4b3acd
+8 -4
View File
@@ -888,8 +888,7 @@ namespace Z80
switch (z)
{
case 0: // Input from port with 16-bit address
this.Bus.Address.Assign(this.BC);
this.ReadPort();
this.ReadPort(this.BC);
this.MEMPTR.Increment();
if (y != 6)
{
@@ -2087,8 +2086,7 @@ namespace Z80
private void BlockIn()
{
this.Tick();
this.Bus.Address.Assign(this.BC);
this.ReadPort();
this.ReadPort(this.BC);
this.Bus.Address.Assign(this.HL);
this.MemoryUpdate(1);
this.AdjustSZXY(--this.B);
@@ -2309,6 +2307,12 @@ namespace Z80
this.MEMPTR.Increment();
}
private void ReadPort(Register16 port)
{
this.Bus.Address.Assign(port);
this.ReadPort();
}
private void ReadPort()
{
this.MEMPTR.Assign(this.Bus.Address);