Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

194 lines
4.1 KiB

  1. ; Some modules really want TRUE to be 0FFH. Best to let them have their way.
  2. ifndef TRUE
  3. TRUE EQU 0FFFFh
  4. endif
  5. ifndef TRUEBYTE
  6. TRUEBYTE EQU 0FFh
  7. endif
  8. ifndef FALSE
  9. FALSE EQU 0
  10. endif
  11. ; This flag should be defined to create the ROM executable version of DOS.
  12. ; To build the regular version, it should be UNDEFINED.
  13. ;
  14. ; ROMDOS equ TRUE
  15. ; This flag should be defined to enable a special version of the EXEC
  16. ; function that will find and execute ROM executable programs.
  17. ;
  18. ; ROMEXEC equ TRUE
  19. if1
  20. ifdef romdos
  21. %out ***** BUILDING ROM EXECUTABLE DOS *****
  22. endif
  23. endif
  24. ;
  25. ; Use the following switches to control cmacros.inc
  26. ;
  27. ?PLM = 0
  28. ?WIN = 0
  29. memS EQU 1 ; Small model
  30. ;
  31. ; Use the switches below to produce the standard Microsoft version or the IBM
  32. ; version of the operating system
  33. ;
  34. ; The below chart will indicate how to set the switches to build the various
  35. ; versions
  36. ;
  37. ; IBMVER IBMCOPYRIGHT
  38. ; --------------------------------------------------------
  39. ; IBM Version | TRUE TRUE
  40. ; --------------------------------------------------------
  41. ; ISA Version | TRUE FALSE
  42. ; --------------------------------------------------------
  43. ; non ISA Version | FALSE FALSE
  44. ;
  45. ifndef NEC_98
  46. IBMVER EQU TRUE
  47. else ;NEC_98
  48. IBMVER EQU FALSE
  49. endif ;NEC_98
  50. IBMCOPYRIGHT EQU FALSE
  51. ;smr; removal of bufferflag; BUFFERFLAG EQU NOT IBMCOPYRIGHT
  52. ;mw 8/23/90 ; removal of ROMVER, superceded by ROMDOS and ROMEXEC, above...
  53. ; ROMVER EQU FALSE
  54. ifndef NEC_98
  55. CPU8086 EQU FALSE
  56. else ;NEC_98
  57. CPU8086 EQU TRUE
  58. endif ;NEC_98
  59. ifndef MSVER
  60. MSVER EQU NOT IBMVER
  61. endif
  62. IBM EQU IBMVER
  63. ;
  64. ;
  65. IF1
  66. IF IBMVER
  67. IF IBMCOPYRIGHT
  68. %OUT ... IBM version build switch on ...
  69. ELSE
  70. ; %OUT ... ISA version build switch on ...
  71. ENDIF
  72. ELSE
  73. IF NOT IBMCOPYRIGHT
  74. %OUT ... non ISA version build switch on ...
  75. ELSE
  76. %OUT !!!!!!!!! VERSION SWITCHES SET INCORECTLY !!!!!!!!!
  77. %OUT !!!!!!!!! CHECK SETTINGS IN INC\VERSION.INC !!!!!!!!!
  78. ENDIF
  79. ENDIF
  80. IF CPU8086
  81. %OUT !!!!!!! 8080 / 8086 Version !!!!!!!
  82. ENDIF
  83. ENDIF
  84. ;****************************************************************************
  85. ;
  86. ; <<< Followings are the DBCS relating Definition >>>
  87. ;
  88. ;
  89. ; To build DBCS version, Define DBCS by using MASM option via
  90. ; Dos environment.
  91. ;
  92. ; ex. set MASM=-DDBCS
  93. ;
  94. ;
  95. ;
  96. ; To build Country/Region depend version, Define JAPAN, KOREA ,TAIWAN or PRC
  97. ; by using MASM option via Dos environment.
  98. ;
  99. ; ex. set MASM=-DJAPAN
  100. ; set MASM=-DKOREA
  101. ; set MASM=-DTAIWAN
  102. ; set MASM=-DPRC
  103. ;
  104. ;****************************************************************************
  105. BUGFIX EQU TRUE
  106. IBMJAPVER EQU FALSE ; if TRUE define DBCS also
  107. IBMJAPAN EQU FALSE ; if TRUE define DBCS also
  108. ifdef xxTAIWANxx
  109. CSIBIOS EQU FALSE ; BIOS CSI
  110. CSIDRV EQU TRUE ; Device Drive CSI
  111. CSITSR EQU FALSE ; TSR CSI
  112. else
  113. CSIBIOS EQU FALSE
  114. CSIDRV EQU FALSE
  115. CSITSR EQU FALSE
  116. endif
  117. ;
  118. ; Set DBCS Blank constant
  119. ;
  120. ifndef DBCS
  121. DB_SPACE EQU 2020h
  122. DB_SP_HI EQU 20h
  123. DB_SP_LO EQU 20h
  124. else
  125. ifdef JAPAN
  126. DB_SPACE EQU 8140h
  127. DB_SP_HI EQU 81h
  128. DB_SP_LO EQU 40h
  129. endif
  130. ifdef TAIWAN ; by gchang, 06/23/94
  131. DB_SPACE EQU 0A140h
  132. DB_SP_HI EQU 0A1h
  133. DB_SP_LO EQU 40h
  134. endif
  135. ifdef PRC ; by gchang, 06/23/94
  136. DB_SPACE EQU 0A1A1h
  137. DB_SP_HI EQU 0A1h
  138. DB_SP_LO EQU 0A1h
  139. endif
  140. ifdef KOREA
  141. DB_SPACE EQU 0A1A1h
  142. DB_SP_HI EQU 0A1h
  143. DB_SP_LO EQU 0A1h
  144. endif
  145. endif
  146. ifndef altvect ; avoid jerking off vector.inc
  147. ALTVECT EQU FALSE ;Switch to build ALTVECT version
  148. endif
  149. ;
  150. IF1
  151. ifdef DBCS
  152. %OUT DBCS Version Build Switch ON
  153. ifdef JAPAN
  154. %OUT JAPAN Version Build Switch ON
  155. endif
  156. ifdef TAIWAN
  157. %OUT TAIWAN Version Build Switch ON
  158. endif
  159. ifdef KOREA
  160. %OUT KOREA Version Build Switch ON
  161. endif
  162. endif
  163. ENDIF
  164.