comparison zdis.c @ 805:3eced113081c

Pre-release cleanup
author Michael Pavone <pavone@retrodev.com>
date Sun, 26 Jul 2015 18:29:14 -0700
parents 140af5509ce7
children e95978c0988c
comparison
equal deleted inserted replaced
804:59e664fa2da8 805:3eced113081c
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. 4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text.
5 */ 5 */
6 #include "z80inst.h" 6 #include "z80inst.h"
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <stdarg.h>
9 10
10 uint8_t visited[(64*1024)/8]; 11 uint8_t visited[(64*1024)/8];
11 uint8_t label[(64*1024)/8]; 12 uint8_t label[(64*1024)/8];
13
14 void fatal_error(char *format, ...)
15 {
16 va_list args;
17 va_start(args, format);
18 vfprintf(stderr, format, args);
19 va_end(args);
20 exit(1);
21 }
12 22
13 void visit(uint16_t address) 23 void visit(uint16_t address)
14 { 24 {
15 visited[address/8] |= 1 << (address % 8); 25 visited[address/8] |= 1 << (address % 8);
16 } 26 }