fix crash when specifying --source on command line
[rofl0r-gnuboy.git] / defs.h
blobc54964d6d11fed3dca89bc904045c89ac76a46e6
4 #ifndef __DEFS_H__
5 #define __DEFS_H__
9 #ifdef IS_LITTLE_ENDIAN
10 #define LO 0
11 #define HI 1
12 #define LIL(x) (x)
13 #else
14 #define LO 1
15 #define HI 0
16 #define LIL(x) ((x<<24)|((x&0xff00)<<8)|((x>>8)&0xff00)|(x>>24))
17 #endif
19 typedef unsigned char byte;
21 typedef unsigned char un8;
22 typedef unsigned short un16;
23 typedef unsigned int un32;
25 typedef signed char n8;
26 typedef signed short n16;
27 typedef signed int n32;
29 typedef un16 word;
30 typedef word addr;
32 /* stuff from main.c ... */
33 void die(char *fmt, ...);
34 void doevents();
35 int load_rom_and_rc(char *rom);
38 #endif