Mercurial > repos > blastem
diff dis.c @ 805:3eced113081c
Pre-release cleanup
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 26 Jul 2015 18:29:14 -0700 |
parents | 1a14f5f6c6a1 |
children | d29722e3359c |
line wrap: on
line diff
--- a/dis.c Sun Jul 26 17:21:49 2015 -0700 +++ b/dis.c Sun Jul 26 18:29:14 2015 -0700 @@ -7,12 +7,23 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <stdarg.h> #include "vos_program_module.h" #include "tern.h" uint8_t visited[(16*1024*1024)/16]; uint16_t label[(16*1024*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(uint32_t address) { address &= 0xFFFFFF;