]> localhost Git - WindEmu.git/commitdiff
fix Osaris modifier keys
authorAsh Wolf <ninji@wuffs.org>
Wed, 25 Dec 2019 19:32:17 +0000 (19:32 +0000)
committerAsh Wolf <ninji@wuffs.org>
Wed, 25 Dec 2019 19:32:17 +0000 (19:32 +0000)
WindCore/clps7111.cpp

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