1 /****************************************************************************
2 *                                                                           *
3 *                            Third Year Project                             *
4 *                                                                           *
5 *                            An IBM PC Emulator                             *
6 *                          For Unix and X Windows                           *
7 *                                                                           *
8 *                             By David Hedley                               *
9 *                                                                           *
10 *                                                                           *
11 * This program is Copyrighted.  Consult the file COPYRIGHT for more details *
12 *                                                                           *
13 ****************************************************************************/
14 
15 /* This is GLOBAL.H  It contains definitions for the program wide functions */
16 
17 
18 #ifndef GLOBAL_H
19 #define GLOBAL_H
20 
21 #include "mytypes.h"
22 
23 #ifdef ME
24 #       include "uprotos.h"
25 #endif
26 
27 #ifndef FALSE
28 #    define FALSE 0
29 #endif
30 #ifndef TRUE
31 #    define TRUE (!FALSE)
32 #endif
33 
34 #define MEMORY_SIZE (1024*1024+65536)
35 
36 #ifdef INLINE_FUNCTIONS
37 #    define INLINE inline
38 #    define INLINE2 inline
39 #else
40 #    define INLINE
41 #    define INLINE2
42 #endif
43 
44 #ifdef DEBUG
45 #   define D(x) x
46 #else
47 #   define D(x)
48 #endif
49 
50 #ifdef DEBUG2
51 #   define D2(x) x
52 #else
53 #   define D2(x)
54 #endif
55 
56 #ifdef _HPUX_SOURCE
57 #ifndef __hpux
58 #define __hpux
59 #endif
60 #endif
61 
62 extern BYTE *memory;
63 extern char *progname;
64 
65 void init_cpu(void);
66 void execute(void);
67 void exit_emu(void);
68 
69 #endif
70 
71 
72 
73 
74 
75 
76