fix Osaris modifier keys

This commit is contained in:
Ash Wolf 2019-12-25 19:32:17 +00:00
parent 0aa59317ba
commit cfdd32c414
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ uint32_t Emulator::readReg8(uint32_t reg) {
if (reg == PADR) { if (reg == PADR) {
return ((portValues >> 24) & 0x80) | (readKeyboard() & 0x7F); return ((portValues >> 24) & 0x80) | (readKeyboard() & 0x7F);
} else if (reg == PBDR) { } else if (reg == PBDR) {
return ((portValues >> 16) & 0x0F) | (keyboardExtra << 4); return ((portValues >> 16) & 0x0F) | ((keyboardExtra ^ 0xF) << 4);
} else if (reg == PDDR) { } else if (reg == PDDR) {
return (portValues >> 8) & 0xFF; return (portValues >> 8) & 0xFF;
} else if (reg == PEDR) { } else if (reg == PEDR) {