home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1996 December / PC_Shareware-1996-12.iso / windows / spectrum / sources / quirks.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-11  |  1.7 KB  |  74 lines

  1.  
  2. /* Quirks.h : definitions for portability of Z80 kernel.
  3.  *
  4.  * Copyright 1996 Rui Fernando Ferreira Ribeiro.
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * (at your option) any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  */
  20.  
  21. /* #define WINDOWS_SOUND 1 */
  22.  
  23. /* in 68000 put: #define M68000 1 */
  24. #define i8086
  25.  
  26. #undef __MSDOS__
  27.  
  28. #define P_TYPE      long
  29.  
  30. #define far     FAR
  31. #define huge
  32. #define near
  33.  
  34. /* in Borland C */
  35. #define LOCAL static
  36.  
  37. /* for parameter passage - void or char */
  38. #if defined(__NPAR_ANSI)
  39. #define VOID char
  40. #else
  41. #define VOID void
  42. #endif
  43.  
  44. /* for ansi prototypes */
  45. /* #if defined(__STDC__) */
  46. #define P(x) x
  47. /* #else
  48. #define P(x) ()
  49. #endif
  50. */
  51.  
  52. /* Some compilers define the macros below
  53. */
  54. #undef USHORT
  55. #undef UCHAR
  56.  
  57. #define USHORT unsigned short
  58. #define UCHAR  unsigned char
  59.  
  60. #define BIT_7 ((USHORT)0x80)
  61. #define BIT_6 ((USHORT)0x40)
  62. #define BIT_5 ((USHORT)0x20)
  63. #define BIT_4 ((USHORT)0x10)
  64. #define BIT_3 ((USHORT)0x08)
  65. #define BIT_2 ((USHORT)0x04)
  66. #define BIT_1 ((USHORT)0x02)
  67. #define BIT_0 ((USHORT)0x01)
  68.  
  69. #define NDEBUG 1
  70.  
  71. #define BOOLEAN UCHAR
  72.  
  73. /* EOF: Quirks.h */
  74.