From 9aa02bebf295ce9436451e0ce85db7717a6c9f81 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 4 Aug 2019 00:13:59 +1200 Subject: Add initial emulator implementation This emulator provides a rough way for binaries designed for this CPU to be executed in a virtual/emulated CPU for testing purposes. This patch also adds a small test setup for automated assembly, execution and checking of register postconditions for programs. --- debug.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 debug.h (limited to 'debug.h') diff --git a/debug.h b/debug.h new file mode 100644 index 0000000..ce92cec --- /dev/null +++ b/debug.h @@ -0,0 +1,10 @@ +#ifndef DEBUG_H +#define DEBUG_H + +#ifdef DEBUG +#define debug(x...) printf(x) +#else +#define debug(x...) +#endif + +#endif /* DEBUG_H */ -- cgit v1.1