home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / bios / swiftcfg.h < prev    next >
Text File  |  1998-06-08  |  3KB  |  103 lines

  1. /*
  2. THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  3. SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
  4. END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  5. ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  6. IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  7. SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  8. FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  9. CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
  10. AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
  11. COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
  12. */
  13. /*
  14.  * $Source: f:/miner/source/bios/rcs/swiftcfg.h $
  15.  * $Revision: 1.2 $
  16.  * $Author: john $
  17.  * $Date: 1994/04/01 16:09:50 $
  18.  * 
  19.  * .
  20.  * 
  21.  * $Log: swiftcfg.h $
  22.  * Revision 1.2  1994/04/01  16:09:50  john
  23.  * Added Cyberman supprt
  24.  * 
  25.  * Revision 1.1  1994/04/01  14:04:16  john
  26.  * Initial revision
  27.  * 
  28.  * 
  29.  */
  30.  
  31.  
  32. #ifndef _SWIFTCFG_H
  33. #define _SWIFTCFG_H
  34.  
  35. /* SWIFT configuration parameters            */
  36. /* used to control compilation of SWIFT.C        */
  37.  
  38. // Standard configurations, for which we automatically configure.
  39. // WATCOM C 9.0, target: 32-bit code, Rational DOS/4GW extender
  40. // Borland C++ 3.10, target: 16-bit code, DOS real mode
  41. // Microsoft C 6.00A, target: 16-bit code, DOS real mode
  42. // Microsoft C 7.00, target: 16-bit code, DOS real mode
  43.  
  44. // For any other configuration:
  45. // Define PROTECTED_MODE if that describes your target environment
  46. // (REAL_MODE is the default)
  47. // Define RATIONAL_EXTENDER if that is your target environment
  48. // Define TARGET_32 or TARGET_16 if your code is 32-bit (386/486) or
  49. // 16-bit respectively.  Within these two big categories, the memory
  50. // models pretty much take care of themselves.
  51. // At this time, only DOS real-mode, and protected mode with DOS/4GW
  52. // are supported by the SWIFT.C module.
  53.  
  54. #ifdef __WATCOMC__
  55. // assume target is 32-bit protected mode with Rational DOS/4GW
  56. #define PROTECTED_MODE
  57. #define TARGET_32
  58. #define RATIONAL_EXTENDER
  59. // and use 32-bit register names
  60. #if defined(__386__) && !defined(__WINDOWS_386__)
  61. #define AX(r) ((r).x.eax)
  62. #define BX(r) ((r).x.ebx)
  63. #define CX(r) ((r).x.ecx)
  64. #define DX(r) ((r).x.edx)
  65. #define SI(r) ((r).x.esi)
  66. #define DI(r) ((r).x.edi)
  67. #endif
  68. #endif
  69.  
  70. #ifdef __BORLANDC__
  71. #define REAL_MODE
  72. #define TARGET_16
  73. #endif
  74.  
  75. #ifdef _MSC_VER
  76. #define REAL_MODE
  77. #define TARGET_16
  78. #endif
  79.  
  80. #if !defined(PROTECTED_MODE) && !defined(REAL_MODE)
  81. #define REAL_MODE
  82. #endif
  83.  
  84. #if !defined(TARGET_32) && !defined(TARGET_16)
  85. #define TARGET_16
  86. #endif
  87.  
  88. //#define RATIONAL_EXTENDER
  89. //#define PHARLAP_EXTENDER
  90.  
  91. #ifndef AX
  92. #define AX(r) ((r).x.ax)
  93. #define BX(r) ((r).x.bx)
  94. #define CX(r) ((r).x.cx)
  95. #define DX(r) ((r).x.dx)
  96. #define SI(r) ((r).x.si)
  97. #define DI(r) ((r).x.di)
  98. #endif
  99.  
  100.  
  101. #endif
  102. 
  103.