home *** CD-ROM | disk | FTP | other *** search
-
- /* Quirks.h : definitions for portability of Z80 kernel.
- *
- * Copyright 1996 Rui Fernando Ferreira Ribeiro.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
- /* #define WINDOWS_SOUND 1 */
-
- /* in 68000 put: #define M68000 1 */
- #define i8086
-
- #undef __MSDOS__
-
- #define P_TYPE long
-
- #define far FAR
- #define huge
- #define near
-
- /* in Borland C */
- #define LOCAL static
-
- /* for parameter passage - void or char */
- #if defined(__NPAR_ANSI)
- #define VOID char
- #else
- #define VOID void
- #endif
-
- /* for ansi prototypes */
- /* #if defined(__STDC__) */
- #define P(x) x
- /* #else
- #define P(x) ()
- #endif
- */
-
- /* Some compilers define the macros below
- */
- #undef USHORT
- #undef UCHAR
-
- #define USHORT unsigned short
- #define UCHAR unsigned char
-
- #define BIT_7 ((USHORT)0x80)
- #define BIT_6 ((USHORT)0x40)
- #define BIT_5 ((USHORT)0x20)
- #define BIT_4 ((USHORT)0x10)
- #define BIT_3 ((USHORT)0x08)
- #define BIT_2 ((USHORT)0x04)
- #define BIT_1 ((USHORT)0x02)
- #define BIT_0 ((USHORT)0x01)
-
- #define NDEBUG 1
-
- #define BOOLEAN UCHAR
-
- /* EOF: Quirks.h */
-