diff --git a/src/cpu.c b/src/cpu.c index 4ff0f96..c110d30 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -34,7 +34,11 @@ /* CPU flags */ #define CPU_FLAGS_HALT (1<<0) +#ifdef M16_DEBUG_INSTR #define debug(...) fprintf(stderr, __VA_ARGS__) +#else +#define debug(...) +#endif /* M16_DEBUG_INSTR */ static void execute(struct cpu_state *state, struct instr *instr) {