First commit with most sources

This commit is contained in:
Godzil
2018-05-21 08:48:53 +01:00
parent 2be3c740c9
commit 61b60f3068
53 changed files with 11137 additions and 0 deletions

84
cpu/global.h Normal file
View File

@@ -0,0 +1,84 @@
/****************************************************************************
* *
* 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