mirror of
https://github.com/pnx/m16vm
synced 2026-06-16 03:44:55 +02:00
src/cpu.c: add M16_DEBUG_INSTR preprocessor macro to toggle debug output.
This commit is contained in:
parent
fea81c37e2
commit
66ea2b3b49
1 changed files with 4 additions and 0 deletions
|
|
@ -34,7 +34,11 @@
|
||||||
/* CPU flags */
|
/* CPU flags */
|
||||||
#define CPU_FLAGS_HALT (1<<0)
|
#define CPU_FLAGS_HALT (1<<0)
|
||||||
|
|
||||||
|
#ifdef M16_DEBUG_INSTR
|
||||||
#define debug(...) fprintf(stderr, __VA_ARGS__)
|
#define debug(...) fprintf(stderr, __VA_ARGS__)
|
||||||
|
#else
|
||||||
|
#define debug(...)
|
||||||
|
#endif /* M16_DEBUG_INSTR */
|
||||||
|
|
||||||
static void execute(struct cpu_state *state, struct instr *instr) {
|
static void execute(struct cpu_state *state, struct instr *instr) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue