From cfdd32c4146481a9e717725bde32a66701583796 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 25 Dec 2019 19:32:17 +0000 Subject: [PATCH] fix Osaris modifier keys --- WindCore/clps7111.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WindCore/clps7111.cpp b/WindCore/clps7111.cpp index c764e9d..473756d 100644 --- a/WindCore/clps7111.cpp +++ b/WindCore/clps7111.cpp @@ -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) {