TWEAK.INC 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. ;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  2. ;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
  3. ;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  4. ;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  5. ;IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  6. ;SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  7. ;FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  8. ;CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
  9. ;AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
  10. ;COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
  11. ;
  12. ; $Source: f:/miner/source/2d/rcs/tweak.inc $
  13. ; $Revision: 1.3 $
  14. ; $Author: john $
  15. ; $Date: 1993/11/16 11:28:09 $
  16. ;
  17. ; Parameters used by modex.asm to set various modex resolutions.
  18. ;
  19. ; $Log: tweak.inc $
  20. ; Revision 1.3 1993/11/16 11:28:09 john
  21. ; *** empty log message ***
  22. ;
  23. ; Revision 1.2 1993/10/15 16:23:18 john
  24. ; y
  25. ;
  26. ; Revision 1.1 1993/09/08 11:41:09 john
  27. ; Initial revision
  28. ;
  29. ;
  30. ;
  31. ; Mode X CRTC register tweaks for various resolutions
  32. X320Y200 db 00 ; 0e3h ; dot clock
  33. db 02 ; Number of CRTC Registers to update
  34. dw 00014h ; turn off dword mode
  35. dw 0e317h ; turn on byte mode
  36. dw 320 ; width
  37. dw 200 ; height
  38. X320Y240 db 0e3h ; dot clock
  39. db 10 ; Number of CRTC Registers to update
  40. dw 00d06h ; vertical total
  41. dw 03e07h ; overflow (bit 8 of vertical counts)
  42. dw 04109h ; cell height (2 to double-scan)
  43. dw 0ea10h ; v sync start
  44. dw 0ac11h ; v sync end and protect cr0-cr7
  45. dw 0df12h ; vertical displayed
  46. dw 00014h ; turn off dword mode
  47. dw 0e715h ; v blank start
  48. dw 00616h ; v blank end
  49. dw 0e317h ; turn on byte mode
  50. dw 320 ; width
  51. dw 240 ; height
  52. X360Y200 db 0e7h ; dot clock
  53. db 08 ; Number of CRTC Registers to update
  54. dw 06b00h ; horz total
  55. dw 05901h ; horz displayed
  56. dw 05a02h ; start horz blanking
  57. dw 08e03h ; end horz blanking
  58. dw 05e04h ; start h sync
  59. dw 08a05h ; end h sync
  60. dw 00014h ; turn off dword mode
  61. dw 0e317h ; turn on byte mode
  62. dw 360 ; width
  63. dw 200 ; height
  64. X360Y240 db 0e7h ; dot clock
  65. db 17 ; Number of CRTC Registers to update
  66. dw 06b00h ; horz total
  67. dw 05901h ; horz displayed
  68. dw 05a02h ; start horz blanking
  69. dw 08e03h ; end horz blanking
  70. dw 05e04h ; start h sync
  71. dw 08a05h ; end h sync
  72. dw 00d06h ; vertical total
  73. dw 03e07h ; overflow (bit 8 of vertical counts)
  74. dw 04109h ; cell height (2 to double-scan)
  75. dw 0ea10h ; v sync start
  76. dw 0ac11h ; v sync end and protect cr0-cr7
  77. dw 0df12h ; vertical displayed
  78. dw 02d13h ; offset;
  79. dw 00014h ; turn off dword mode
  80. dw 0e715h ; v blank start
  81. dw 00616h ; v blank end
  82. dw 0e317h ; turn on byte mode
  83. dw 360
  84. dw 240
  85. X376Y282 db 0e7h
  86. db 18
  87. dw 06e00h ; horz total
  88. dw 05d01h ; horz displayed
  89. dw 05e02h ; start horz blanking
  90. dw 09103h ; end horz blanking
  91. dw 06204h ; start h sync
  92. dw 08f05h ; end h sync
  93. dw 06206h ; vertical total
  94. dw 0f007h ; overflow
  95. dw 06109h ; cell height
  96. dw 0310fh ;
  97. dw 03710h ; v sync start
  98. dw 08911h ; v sync end and protect cr0-cr7
  99. dw 03312h ; vertical displayed
  100. dw 02f13h ; offset
  101. dw 00014h ; turn off dword mode
  102. dw 03c15h ; v blank start
  103. dw 05c16h ; v blank end
  104. dw 0eb17h ; turn on byte mode
  105. dw 376
  106. dw 282
  107. X320Y400 db 0h ; dot clock
  108. db 03 ; Number of CRTC Registers to update
  109. dw 04009h ; cell height
  110. dw 00014h ; turn off dword mode
  111. dw 0e317h ; turn on byte mode
  112. dw 320 ; width
  113. dw 400 ; height
  114. X320Y480 db 0e3h ; dotclock
  115. db 10 ; Number of CRTC Registers to update
  116. dw 00d06h ; vertical total
  117. dw 03e07h ; overflow (bit 8 of vertical counts)
  118. dw 04009h ; cell height (2 to double-scan)
  119. dw 0ea10h ; v sync start
  120. dw 0ac11h ; v sync end and protect cr0-cr7
  121. dw 0df12h ; vertical displayed
  122. dw 00014h ; turn off dword mode
  123. dw 0e715h ; v blank start
  124. dw 00616h ; v blank end
  125. dw 0e317h ; turn on byte mode
  126. dw 320 ; width
  127. dw 480 ; height
  128. X360Y400 db 0e7h ; dot clock
  129. db 09 ; Number of CRTC Registers to update
  130. dw 06b00h ; horz total
  131. dw 05901h ; horz displayed
  132. dw 05a02h ; start horz blanking
  133. dw 08e03h ; end horz blanking
  134. dw 05e04h ; start h sync
  135. dw 08a05h ; end h sync
  136. dw 04009h ; cell height
  137. dw 00014h ; turn off dword mode
  138. dw 0e317h ; turn on byte mode
  139. dw 360 ; width
  140. dw 400 ; height
  141. X360Y480 db 0e7h
  142. db 17
  143. dw 06b00h ; horz total
  144. dw 05901h ; horz displayed
  145. dw 05a02h ; start horz blanking
  146. dw 08e03h ; end horz blanking
  147. dw 05e04h ; start h sync
  148. dw 08a05h ; end h sync
  149. dw 00d06h ; vertical total
  150. dw 03e07h ; overflow
  151. dw 04009h ; cell height
  152. dw 0ea10h ; v sync start
  153. dw 0ac11h ; v sync end and protect cr0-cr7
  154. dw 0df12h ; vertical displayed
  155. dw 02d13h ; offset
  156. dw 00014h ; turn off dword mode
  157. dw 0e715h ; v blank start
  158. dw 00616h ; v blank end
  159. dw 0e317h ; turn on byte mode
  160. dw 360
  161. dw 480
  162. X360Y360 db 0e7h
  163. db 15
  164. dw 06b00h ; horz total
  165. dw 05901h ; horz displayed
  166. dw 05a02h ; start horz blanking
  167. dw 08e03h ; end horz blanking
  168. dw 05e04h ; start h sync
  169. dw 08a05h ; end h sync
  170. dw 04009h ; cell height
  171. dw 08810h ; v sync start
  172. dw 08511h ; v sync end and protect cr0-cr7
  173. dw 06712h ; vertical displayed
  174. dw 02d13h ; offset
  175. dw 00014h ; turn off dword mode
  176. dw 06d15h ; v blank start
  177. dw 0ba16h ; v blank end
  178. dw 0e317h ; turn on byte mode
  179. dw 360
  180. dw 360
  181. X376Y308 db 0e7h
  182. db 18
  183. dw 06e00h ; horz total
  184. dw 05d01h ; horz displayed
  185. dw 05e02h ; start horz blanking
  186. dw 09103h ; end horz blanking
  187. dw 06204h ; start h sync
  188. dw 08f05h ; end h sync
  189. dw 06206h ; vertical total
  190. dw 00f07h ; overflow
  191. dw 04009h ;
  192. dw 0310fh ;
  193. dw 03710h ; v sync start
  194. dw 08911h ; v sync end and protect cr0-cr7
  195. dw 03312h ; vertical displayed
  196. dw 02f13h ; offset
  197. dw 00014h ; turn off dword mode
  198. dw 03c15h ; v blank start
  199. dw 05c16h ; v blank end
  200. dw 0e317h ; turn on byte mode
  201. dw 376
  202. dw 308
  203. X376Y564 db 0e7h
  204. db 18
  205. dw 06e00h ; horz total
  206. dw 05d01h ; horz displayed
  207. dw 05e02h ; start horz blanking
  208. dw 09103h ; end horz blanking
  209. dw 06204h ; start h sync
  210. dw 08f05h ; end h sync
  211. dw 06206h ; vertical total
  212. dw 0f007h ; overflow
  213. dw 06009h ;
  214. dw 0310fh ;
  215. dw 03710h ; v sync start
  216. dw 08911h ; v sync end and protect cr0-cr7
  217. dw 03312h ; vertical displayed
  218. dw 02f13h ; offset
  219. dw 00014h ; turn off dword mode
  220. dw 03c15h ; v blank start
  221. dw 05c16h ; v blank end
  222. dw 0e317h ; turn on byte mode
  223. dw 376
  224. dw 564
  225. LAST_X_MODE equ 11
  226. ModeTable dd offset X320Y200
  227. dd offset X320Y240
  228. dd offset X360Y200
  229. dd offset X360Y240
  230. dd offset X376Y282
  231. dd offset X320Y400
  232. dd offset X320Y480
  233. dd offset X360Y400
  234. dd offset X360Y480
  235. dd offset X360Y360
  236. dd offset X376Y308
  237. dd offset X376Y564