Skip to content

Commit

Permalink
ZXHawk: +3/+2a writes to 0x1ffd and 0x7ffd decoded more faithfully
Browse files Browse the repository at this point in the history
  • Loading branch information
Asnivor committed Aug 20, 2018
1 parent 6a5b77c commit 7ff4cea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -75,7 +75,7 @@ public override void WritePort(ushort port, byte value)
AYDevice.WritePort(port, value);

// port 0x7ffd - hardware should only respond when bits 1 & 15 are reset and bit 14 is set
if (port == 0x7ffd)
if (!portBits[1] && !portBits[15] && portBits[14])
{
if (!PagingDisabled)
{
Expand All @@ -95,7 +95,7 @@ public override void WritePort(ushort port, byte value)
}
}
// port 0x1ffd - hardware should only respond when bits 1, 13, 14 & 15 are reset and bit 12 is set
if (port == 0x1ffd)
if (!portBits[1] && portBits[12] && !portBits[13] && !portBits[14] && !portBits[15])
{
if (!PagingDisabled)
{
Expand Down
Expand Up @@ -81,7 +81,7 @@ public override void WritePort(ushort port, byte value)
UPDDiskDevice.WritePort(port, value);

// port 0x7ffd - hardware should only respond when bits 1 & 15 are reset and bit 14 is set
if (port == 0x7ffd)
if (!portBits[1] && !portBits[15] && portBits[14])
{
if (!PagingDisabled)
{
Expand All @@ -101,7 +101,7 @@ public override void WritePort(ushort port, byte value)
}
}
// port 0x1ffd - hardware should only respond when bits 1, 13, 14 & 15 are reset and bit 12 is set
if (port == 0x1ffd)
if (!portBits[1] && portBits[12] && !portBits[13] && !portBits[14] && !portBits[15])
{
if (!PagingDisabled)
{
Expand Down

0 comments on commit 7ff4cea

Please sign in to comment.