home *** CD-ROM | disk | FTP | other *** search
/ PC Underground / UNDERGROUND.ISO / doom / source / _vgaxasm.inc < prev    next >
Encoding:
Text File  |  1995-02-05  |  2.7 KB  |  94 lines

  1. ;------------------------------------------------------------------------
  2. ; VGA eXtra! Assembler Include
  3. ; Copyright (c) 1993-95 by J.E. Hoffmann
  4. ; All rights reserved
  5. ;------------------------------------------------------------------------}
  6.  
  7.  
  8.  
  9. ;--General Register----------------------------------------
  10.   GR_InputStatus1            EQU 3DAh
  11.  
  12.  
  13. ;--Cathode Ray Tube Controller-----------------------------
  14.   CC_Index                   EQU 3D4h
  15.   CC_Data                    EQU 3D5h
  16.  
  17.   cc_HorizontalTotal         EQU 00h
  18.   cc_HorizontalDisplayEnd    EQU 01h
  19.   cc_StartHorizontalBlanking EQU 02h
  20.   cc_EndHorizontalBlanking   EQU 03h
  21.   cc_StartHorizontalRetrace  EQU 04h
  22.   cc_EndHorizontalRetrace    EQU 05h
  23.   cc_VerticalTotal           EQU 06h
  24.   cc_Overflow                EQU 07h
  25.   cc_PresetRowScan           EQU 08h
  26.   cc_MaximumScanLine         EQU 09h
  27.   cc_CursorStart             EQU 0Ah
  28.   cc_CursorEnd               EQU 0Bh
  29.   cc_StartAddressHigh        EQU 0Ch
  30.   cc_StartAddressLow         EQU 0Dh
  31.   cc_CursorLocationHigh      EQU 0Eh
  32.   cc_CursorLocationLow       EQU 0Fh
  33.   cc_StartVerticalRetrace    EQU 10h
  34.   cc_EndVerticalRetrace      EQU 11h
  35.   cc_VerticalDisplayEnd      EQU 12h
  36.   cc_Offset                  EQU 13h
  37.   cc_UnderlineLocation       EQU 14h
  38.   cc_StartVerticalBlanking   EQU 15h
  39.   cc_EndVerticalBlanking     EQU 16h
  40.   cc_ModeControl             EQU 17h
  41.   cc_LineCompare             EQU 18h
  42.  
  43.  
  44. ;--Graphics Controller-----------------------------
  45.   GC_Index                   EQU 3CEh
  46.   GC_Data                    EQU 3CFh
  47.  
  48.   gc_SetReset                EQU 00h
  49.   gc_EnableSetReset          EQU 01h
  50.   gc_ColorCompare            EQU 02h
  51.   gc_DataRotate              EQU 03h
  52.   gc_ReadMapSelect           EQU 04h
  53.   gc_Mode                    EQU 05h
  54.   gc_Miscellaneous           EQU 06h
  55.   gc_ColorDontCare           EQU 07h
  56.   gc_BitMask                 EQU 08h
  57.  
  58.  
  59. ;--Sequencer Controller-----------------------------
  60.   SC_Index                   EQU 3C4h
  61.   SC_Data                    EQU 3C5h
  62.  
  63.   sc_Reset                   EQU 00h
  64.   sc_ClockingMode            EQU 01h
  65.   sc_MapMask                 EQU 02h
  66.   sc_CharacterMapSelect      EQU 03h
  67.   sc_MemoryMode              EQU 04h
  68.  
  69.  
  70. ;--Digital Analog Converter-------------------------
  71.   DC_PELAddressReadMode_W    EQU 3C7h
  72.   DC_PELAddressReadMode_R    EQU 3C8h
  73.   DC_PELAddressWriteMode     EQU 3C8h
  74.   DC_PELData                 EQU 3C9h
  75.   DC_DACState                EQU 3C7h
  76.   DC_PELMask                 EQU 3C6h
  77.  
  78.  
  79.  
  80. ;--Page Offsets (FlipPage+SwapPage)-----------------
  81.   P0                         EQU 0*3F00h
  82.   P1                         EQU 1*3F00h
  83.   P2                         EQU 2*3F00h
  84.   P3                         EQU 3*3F00h
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.