diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-07-26 18:29:14 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-07-26 18:29:14 -0700 |
commit | 2035e89a97d0ca4812488cce1804d6a1f5f3fa90 (patch) | |
tree | 4d27bb3c8609a9fcf0f2bd2eafc41755cf3ed043 /zdis.c | |
parent | 2587ab8ea9606193b3893142ec7b674a8a7194ad (diff) |
Pre-release cleanup
Diffstat (limited to 'zdis.c')
-rw-r--r-- | zdis.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -6,10 +6,20 @@ #include "z80inst.h" #include <stdio.h> #include <stdlib.h> +#include <stdarg.h> uint8_t visited[(64*1024)/8]; uint8_t label[(64*1024)/8]; +void fatal_error(char *format, ...) +{ + va_list args; + va_start(args, format); + vfprintf(stderr, format, args); + va_end(args); + exit(1); +} + void visit(uint16_t address) { visited[address/8] |= 1 << (address % 8); |