home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / 2d / tweak.inc < prev    next >
Text File  |  1998-06-08  |  9KB  |  257 lines

  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. ; Revision 1.2  1993/10/15  16:23:18  john
  23. ; y
  24. ; Revision 1.1  1993/09/08  11:41:09  john
  25. ; Initial revision
  26. ;
  27. ;
  28.  
  29.  
  30. ; Mode X CRTC register tweaks for various resolutions
  31.  
  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.  
  39. X320Y240    db      0e3h    ; dot clock
  40.             db      10      ; Number of CRTC Registers to update
  41.             dw      00d06h  ; vertical total
  42.             dw      03e07h  ; overflow (bit 8 of vertical counts)
  43.             dw      04109h  ; cell height (2 to double-scan)
  44.             dw      0ea10h  ; v sync start
  45.             dw      0ac11h  ; v sync end and protect cr0-cr7
  46.             dw      0df12h  ; vertical displayed
  47.             dw      00014h  ; turn off dword mode
  48.             dw      0e715h  ; v blank start
  49.             dw      00616h  ; v blank end
  50.             dw      0e317h  ; turn on byte mode
  51.             dw      320     ; width
  52.             dw      240     ; height
  53.  
  54. X360Y200    db      0e7h    ; dot clock
  55.             db      08      ; Number of CRTC Registers to update
  56.             dw      06b00h  ; horz total
  57.             dw      05901h  ; horz displayed
  58.             dw      05a02h  ; start horz blanking
  59.             dw      08e03h  ; end horz blanking
  60.             dw      05e04h  ; start h sync
  61.             dw      08a05h  ; end h sync
  62.             dw      00014h  ; turn off dword mode
  63.             dw      0e317h  ; turn on byte mode
  64.             dw      360     ; width
  65.             dw      200     ; height
  66.  
  67.  
  68. X360Y240    db      0e7h    ; dot clock
  69.             db      17      ; Number of CRTC Registers to update
  70.             dw      06b00h  ; horz total
  71.             dw      05901h  ; horz displayed
  72.             dw      05a02h  ; start horz blanking
  73.             dw      08e03h  ; end horz blanking
  74.             dw      05e04h  ; start h sync
  75.             dw      08a05h  ; end h sync
  76.             dw      00d06h  ; vertical total
  77.             dw      03e07h  ; overflow (bit 8 of vertical counts)
  78.             dw      04109h  ; cell height (2 to double-scan)
  79.             dw      0ea10h  ; v sync start
  80.             dw      0ac11h  ; v sync end and protect cr0-cr7
  81.             dw      0df12h  ; vertical displayed
  82.             dw      02d13h  ; offset;
  83.             dw      00014h  ; turn off dword mode
  84.             dw      0e715h  ; v blank start
  85.             dw      00616h  ; v blank end
  86.             dw      0e317h  ; turn on byte mode
  87.             dw      360
  88.             dw      240
  89.  
  90. X376Y282    db      0e7h
  91.             db      18
  92.             dw      06e00h  ; horz total
  93.             dw      05d01h  ; horz displayed
  94.             dw      05e02h  ; start horz blanking
  95.             dw      09103h  ; end horz blanking
  96.             dw      06204h  ; start h sync
  97.             dw      08f05h  ; end h sync
  98.             dw      06206h  ; vertical total
  99.             dw      0f007h  ; overflow
  100.             dw      06109h  ; cell height
  101.             dw      0310fh  ;
  102.             dw      03710h  ; v sync start
  103.             dw      08911h  ; v sync end and protect cr0-cr7
  104.             dw      03312h  ; vertical displayed
  105.             dw      02f13h  ; offset
  106.             dw      00014h  ; turn off dword mode
  107.             dw      03c15h  ; v blank start
  108.             dw      05c16h  ; v blank end
  109.             dw      0eb17h  ; turn on byte mode
  110.             dw      376
  111.             dw      282
  112.  
  113.  
  114. X320Y400    db      0h    ; dot clock
  115.             db      03      ; Number of CRTC Registers to update
  116.             dw      04009h  ; cell height
  117.             dw      00014h  ; turn off dword mode
  118.             dw      0e317h  ; turn on byte mode
  119.             dw      320     ; width
  120.             dw      400     ; height
  121.  
  122. X320Y480    db      0e3h    ; dotclock
  123.             db      10      ; Number of CRTC Registers to update
  124.             dw      00d06h  ; vertical total
  125.             dw      03e07h  ; overflow (bit 8 of vertical counts)
  126.             dw      04009h  ; cell height (2 to double-scan)
  127.             dw      0ea10h  ; v sync start
  128.             dw      0ac11h  ; v sync end and protect cr0-cr7
  129.             dw      0df12h  ; vertical displayed
  130.             dw      00014h  ; turn off dword mode
  131.             dw      0e715h  ; v blank start
  132.             dw      00616h  ; v blank end
  133.             dw      0e317h  ; turn on byte mode
  134.             dw      320     ; width
  135.             dw      480     ; height
  136.  
  137. X360Y400    db      0e7h    ; dot clock
  138.             db      09      ; Number of CRTC Registers to update
  139.             dw      06b00h  ; horz total
  140.             dw      05901h  ; horz displayed
  141.             dw      05a02h  ; start horz blanking
  142.             dw      08e03h  ; end horz blanking
  143.             dw      05e04h  ; start h sync
  144.             dw      08a05h  ; end h sync
  145.             dw      04009h  ; cell height
  146.             dw      00014h  ; turn off dword mode
  147.             dw      0e317h  ; turn on byte mode
  148.             dw      360     ; width
  149.             dw      400     ; height
  150.  
  151. X360Y480    db      0e7h
  152.             db      17
  153.             dw      06b00h  ; horz total
  154.             dw      05901h  ; horz displayed
  155.             dw      05a02h  ; start horz blanking
  156.             dw      08e03h  ; end horz blanking
  157.             dw      05e04h  ; start h sync
  158.             dw      08a05h  ; end h sync
  159.             dw      00d06h  ; vertical total
  160.             dw      03e07h  ; overflow
  161.             dw      04009h  ; cell height
  162.             dw      0ea10h  ; v sync start
  163.             dw      0ac11h  ; v sync end and protect cr0-cr7
  164.             dw      0df12h  ; vertical displayed
  165.             dw      02d13h  ; offset
  166.             dw      00014h  ; turn off dword mode
  167.             dw      0e715h  ; v blank start
  168.             dw      00616h  ; v blank end
  169.             dw      0e317h  ; turn on byte mode
  170.             dw      360
  171.             dw      480
  172.  
  173. X360Y360    db      0e7h
  174.             db      15
  175.             dw      06b00h  ; horz total
  176.             dw      05901h  ; horz displayed
  177.             dw      05a02h  ; start horz blanking
  178.             dw      08e03h  ; end horz blanking
  179.             dw      05e04h  ; start h sync
  180.             dw      08a05h  ; end h sync
  181.             dw      04009h  ; cell height
  182.             dw      08810h  ; v sync start
  183.             dw      08511h  ; v sync end and protect cr0-cr7
  184.             dw      06712h  ; vertical displayed
  185.             dw      02d13h  ; offset
  186.             dw      00014h  ; turn off dword mode
  187.             dw      06d15h  ; v blank start
  188.             dw      0ba16h  ; v blank end
  189.             dw      0e317h  ; turn on byte mode
  190.             dw      360
  191.             dw      360
  192.  
  193. X376Y308    db      0e7h
  194.             db      18
  195.             dw      06e00h  ; horz total
  196.             dw      05d01h  ; horz displayed
  197.             dw      05e02h  ; start horz blanking
  198.             dw      09103h  ; end horz blanking
  199.             dw      06204h  ; start h sync
  200.             dw      08f05h  ; end h sync
  201.             dw      06206h  ; vertical total
  202.             dw      00f07h  ; overflow
  203.             dw      04009h  ;
  204.             dw      0310fh  ;
  205.             dw      03710h  ; v sync start
  206.             dw      08911h  ; v sync end and protect cr0-cr7
  207.             dw      03312h  ; vertical displayed
  208.             dw      02f13h  ; offset
  209.             dw      00014h  ; turn off dword mode
  210.             dw      03c15h  ; v blank start
  211.             dw      05c16h  ; v blank end
  212.             dw      0e317h  ; turn on byte mode
  213.             dw      376
  214.             dw      308
  215.  
  216. X376Y564    db      0e7h
  217.             db      18
  218.             dw      06e00h  ; horz total
  219.             dw      05d01h  ; horz displayed
  220.             dw      05e02h  ; start horz blanking
  221.             dw      09103h  ; end horz blanking
  222.             dw      06204h  ; start h sync
  223.             dw      08f05h  ; end h sync
  224.             dw      06206h  ; vertical total
  225.             dw      0f007h  ; overflow
  226.             dw      06009h  ;
  227.             dw      0310fh  ;
  228.             dw      03710h  ; v sync start
  229.             dw      08911h  ; v sync end and protect cr0-cr7
  230.             dw      03312h  ; vertical displayed
  231.             dw      02f13h  ; offset
  232.             dw      00014h  ; turn off dword mode
  233.             dw      03c15h  ; v blank start
  234.             dw      05c16h  ; v blank end
  235.             dw      0e317h  ; turn on byte mode
  236.             dw      376
  237.             dw      564
  238.  
  239. LAST_X_MODE         equ    11
  240.  
  241. ModeTable   dd      offset X320Y200
  242.             dd      offset X320Y240
  243.             dd      offset X360Y200
  244.             dd      offset X360Y240
  245.             dd      offset X376Y282
  246.             dd      offset X320Y400
  247.             dd      offset X320Y480
  248.             dd      offset X360Y400
  249.             dd      offset X360Y480
  250.             dd      offset X360Y360
  251.             dd      offset X376Y308
  252.             dd      offset X376Y564
  253.  
  254.