From 65ca931e83527aec35d26ed7a1588938c4b4eea1 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 6 Dec 2020 20:26:24 -0500 Subject: [PATCH] Throws in a new assert, against the unimplemented bit 0 of new video. --- Machines/Apple/AppleIIgs/AppleIIgs.cpp | 5 +++-- .../xcshareddata/xcschemes/Clock Signal.xcscheme | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Machines/Apple/AppleIIgs/AppleIIgs.cpp b/Machines/Apple/AppleIIgs/AppleIIgs.cpp index b6f202b39..b3ae54223 100644 --- a/Machines/Apple/AppleIIgs/AppleIIgs.cpp +++ b/Machines/Apple/AppleIIgs/AppleIIgs.cpp @@ -256,10 +256,11 @@ class ConcreteMachine: // New video register. case Read(0xc029): - *value = video_->get_new_video();; + *value = video_->get_new_video(); break; case Write(0xc029): video_->set_new_video(*value); + assert(*value & 1); // TODO: I think bits 7 and 0 might also affect the memory map. // The descripton isn't especially clear — P.90 of the Hardware Reference. @@ -510,7 +511,7 @@ class ConcreteMachine: // Analogue inputs. All TODO. case Read(0xc060): case Read(0xc061): case Read(0xc062): case Read(0xc063): // Joystick buttons (and keyboard modifiers). - *value = 0x80; + *value = 0x00; is_1Mhz = true; break; diff --git a/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme b/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme index 01069c685..7516c5447 100644 --- a/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme +++ b/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme @@ -66,6 +66,7 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" enableASanStackUseAfterReturn = "YES" + enableUBSanitizer = "YES" disableMainThreadChecker = "YES" launchStyle = "0" useCustomWorkingDirectory = "NO"