forked from jhallen/cpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defs.h
52 lines (42 loc) · 1.41 KB
/
defs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*-----------------------------------------------------------------------*\
| defs.h -- main definitions for z80 emulator |
| |
| Copyright 1986-1988 by Parag Patel. All Rights Reserved. |
| Copyright 1994-1995 by CodeGen, Inc. All Rights Reserved. |
\*-----------------------------------------------------------------------*/
#ifndef __DEFS_H_
#define __DEFS_H_
/* the current version of the z80 emulator */
#define VERSION "3.1e"
/* system definitions */
#if defined THINK_C || defined applec || defined macintosh
# ifndef macintosh
# define macintosh
# endif
#elif defined __MWERKS__
# define BeBox
#elif defined MSDOS && defined GO32
# define DJGPP
# ifndef ENDIAN_LITTLE
# define ENDIAN_LITTLE
# endif
#else
# define UNIX /* cannot use "unix" since DJGPP defines it as well */
#endif
/* some headers define macros this way */
#ifdef BYTE_ORDER
# if BYTE_ORDER == LITTLE_ENDIAN
# ifndef ENDIAN_LITTLE
# define ENDIAN_LITTLE
# endif
# else
# undef ENDIAN_LITTLE
# endif
#endif
typedef enum { FALSE, TRUE } boolean;
#define CNTL(c) ((c) & 037) /* convert a char to its control equivalent */
/* handy typedefs for an 8-bit byte, 16-bit word, & 32-bit longword */
typedef unsigned char byte;
typedef unsigned short word;
typedef unsigned long longword;
#endif /* __DEFS_H_ */