global.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. /* This is GLOBAL.H It contains definitions for the program wide functions */
  15. #ifndef GLOBAL_H
  16. #define GLOBAL_H
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #include "mytypes.h"
  21. #ifdef ME
  22. # include "uprotos.h"
  23. #endif
  24. #ifndef FALSE
  25. # define FALSE 0
  26. #endif
  27. #ifndef TRUE
  28. # define TRUE (!FALSE)
  29. #endif
  30. #define MEMORY_SIZE (1024*1024+65536)
  31. #ifdef INLINE_FUNCTIONS
  32. # define INLINE inline
  33. # define INLINE2 inline
  34. #else
  35. # define INLINE
  36. # define INLINE2
  37. #endif
  38. #ifdef DEBUG
  39. # define D(x) x
  40. #else
  41. # define D(x)
  42. #endif
  43. #ifdef DEBUG2
  44. # define D2(x) x
  45. #else
  46. # define D2(x)
  47. #endif
  48. #ifdef _HPUX_SOURCE
  49. #ifndef __hpux
  50. #define __hpux
  51. #endif
  52. #endif
  53. extern BYTE *memory;
  54. extern char *progname;
  55. void init_cpu(void);
  56. void execute(void);
  57. void exit_emu(void);
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #endif