mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-19 15:16:41 +00:00
Last trivial Z80 update
This commit is contained in:
+8
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user