diff options
author | David Phillips <david@sighup.nz> | 2019-08-04 00:13:59 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2019-08-04 00:13:59 +1200 |
commit | 9aa02bebf295ce9436451e0ce85db7717a6c9f81 (patch) | |
tree | cf95f8e06600c3359a7db6c6b08e6e055acf0d4c /debug.h | |
parent | 89917ead30321ff430fa2eab8e8d96ef4178d994 (diff) | |
download | toy-cpu-assembler-9aa02bebf295ce9436451e0ce85db7717a6c9f81.tar.xz |
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.
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 */ |