mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-21 05:29:13 +00:00
Switches to should_log as a global when I'm hacking about.
This commit is contained in:
parent
ea45ae78d1
commit
2f8078db22
@ -16,6 +16,7 @@
|
|||||||
#include "../../../Activity/Source.hpp"
|
#include "../../../Activity/Source.hpp"
|
||||||
|
|
||||||
//#define LOG_TRACE
|
//#define LOG_TRACE
|
||||||
|
//bool should_log = false;
|
||||||
#include "../../../Processors/68000/68000.hpp"
|
#include "../../../Processors/68000/68000.hpp"
|
||||||
|
|
||||||
#include "../../../Components/AY38910/AY38910.hpp"
|
#include "../../../Components/AY38910/AY38910.hpp"
|
||||||
|
@ -69,10 +69,6 @@
|
|||||||
template <class T, bool dtack_is_implicit, bool signal_will_perform> void Processor<T, dtack_is_implicit, signal_will_perform>::run_for(HalfCycles duration) {
|
template <class T, bool dtack_is_implicit, bool signal_will_perform> void Processor<T, dtack_is_implicit, signal_will_perform>::run_for(HalfCycles duration) {
|
||||||
const HalfCycles remaining_duration = duration + half_cycles_left_to_run_;
|
const HalfCycles remaining_duration = duration + half_cycles_left_to_run_;
|
||||||
|
|
||||||
#ifdef LOG_TRACE
|
|
||||||
static bool should_log = false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// This loop counts upwards rather than downwards because it simplifies calculation of
|
// This loop counts upwards rather than downwards because it simplifies calculation of
|
||||||
// E as and when required.
|
// E as and when required.
|
||||||
HalfCycles cycles_run_for;
|
HalfCycles cycles_run_for;
|
||||||
@ -243,7 +239,7 @@ template <class T, bool dtack_is_implicit, bool signal_will_perform> void Proces
|
|||||||
|
|
||||||
case ExecutionState::BeginInterrupt:
|
case ExecutionState::BeginInterrupt:
|
||||||
#ifdef LOG_TRACE
|
#ifdef LOG_TRACE
|
||||||
should_log = true;
|
// should_log = true;
|
||||||
#endif
|
#endif
|
||||||
active_program_ = nullptr;
|
active_program_ = nullptr;
|
||||||
active_micro_op_ = interrupt_micro_ops_;
|
active_micro_op_ = interrupt_micro_ops_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user