123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- /****************************************************************************
- * *
- * Third Year Project *
- * *
- * An IBM PC Emulator *
- * For Unix and X Windows *
- * *
- * By David Hedley *
- * *
- * *
- * This program is Copyrighted. Consult the file COPYRIGHT for more details *
- * *
- ****************************************************************************/
- /* This is GLOBAL.H It contains definitions for the program wide functions */
- #ifndef GLOBAL_H
- #define GLOBAL_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "mytypes.h"
- #ifdef ME
- # include "uprotos.h"
- #endif
- #ifndef FALSE
- # define FALSE 0
- #endif
- #ifndef TRUE
- # define TRUE (!FALSE)
- #endif
- #define MEMORY_SIZE (1024*1024+65536)
- #ifdef INLINE_FUNCTIONS
- # define INLINE inline
- # define INLINE2 inline
- #else
- # define INLINE
- # define INLINE2
- #endif
- #ifdef DEBUG
- # define D(x) x
- #else
- # define D(x)
- #endif
- #ifdef DEBUG2
- # define D2(x) x
- #else
- # define D2(x)
- #endif
- #ifdef _HPUX_SOURCE
- #ifndef __hpux
- #define __hpux
- #endif
- #endif
- extern BYTE *memory;
- extern char *progname;
- void init_cpu(void);
- void execute(void);
- void exit_emu(void);
- #ifdef __cplusplus
- }
- #endif
- #endif
|