1
0
Fork 0
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:
Henrik Hautakoski 2018-11-25 11:38:11 +01:00
parent fea81c37e2
commit 66ea2b3b49
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA

View file

@ -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) {