- [FIX] Corrected key mapping

- [FIX] ULA ports reconnected after reset
- [FIX] port check on IN() was crashing.
This commit is contained in:
2024-04-15 18:06:59 +02:00
parent 045a2238bd
commit 6dfb24da10
3 changed files with 44 additions and 43 deletions

View File

@@ -821,7 +821,7 @@ namespace z80
port = (rA<<8) | port;
// don't touch flags
}
if (in_ports[port]) {
if (in_ports[port&0xff]) {
const uint8_t val = (uint8_t)in_ports[port&0xff](port);
if (val != 0xff)
return val;