From c785797da665732415de03556c25c5ea3b9a43d0 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 8 Dec 2019 21:01:30 -0500 Subject: [PATCH] Adds a warning for unhandled reset. --- Machines/Atari/ST/AtariST.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Machines/Atari/ST/AtariST.cpp b/Machines/Atari/ST/AtariST.cpp index 7d7f650ba..322d35c7e 100644 --- a/Machines/Atari/ST/AtariST.cpp +++ b/Machines/Atari/ST/AtariST.cpp @@ -30,6 +30,8 @@ #include "../../../ClockReceiver/ForceInline.hpp" #include "../../../Outputs/Speaker/Implementation/LowpassSpeaker.hpp" + +#define LOG_PREFIX "[ST] " #include "../../../Outputs/Log.hpp" #include "../../Utility/MemoryPacker.hpp" @@ -151,6 +153,11 @@ class ConcreteMachine: // Advance time. advance_time(cycle.length); + // Check for assertion of reset. + if(cycle.operation & Microcycle::Reset) { + LOG("Unhandled Reset"); + } + // A null cycle leaves nothing else to do. if(!(cycle.operation & (Microcycle::NewAddress | Microcycle::SameAddress))) return HalfCycles(0);