mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-05 05:34:20 +00:00
Adds a warning for unhandled reset.
This commit is contained in:
parent
0408592ada
commit
c785797da6
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user