home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / EGA_VGA / VID7_REF.ZIP / GFXLIB.INC next >
Encoding:
Text File  |  1990-09-11  |  4.3 KB  |  123 lines

  1. comment !
  2.                               gfxlib.inc
  3.  
  4.              (C)opyright 1990 Headland Technology, Inc.
  5.  
  6.   This code may be used freely as long as it contains this copyright notice.
  7.  
  8.  
  9.         !
  10.  
  11.  
  12. ;************************************************************************
  13. ;
  14. ;                           Video Buffer Segments
  15. ;
  16.  
  17. GRAPHICS_SEG     equ     0A000h
  18. COLOR_TXT_SEG    equ     0B800h
  19. MONO_TXT_SEG     equ     0B000h
  20.  
  21. ;*************************************************************************
  22. ;
  23. ;                       EGA/VGA Data BIOS Area
  24. ;
  25.  
  26. BIOS_MODE         equ      0449h  ; Current video mode number
  27. BIOS_COLUMNS      equ      044Ah  ; Current number of video columns
  28. BIOS_PAGE_SIZE    equ      044Ch  ; Current size of video buffer
  29. BIOS_PAGE_OFF     equ     044Eh  ; Offset of current video page
  30. BIOS_CURS_POS     equ     0450h  ; Col, row position 
  31. BIOS_CURS_MODE    equ     0460h  ; Current cursor mode setting
  32. BIOS_CURR_PAGE    equ     0462h  ; Current page being displayed
  33. BIOS_6845         equ      0463h  ; Base I/O address for 6845/CRTC
  34. BIOS_CRT_SET      equ     0465h  ; Simulated value of CGA 3x8
  35. BIOS_CRT_PAL      equ     0466h  ; Simulated value of CGA 3x9
  36. BIOS_ROWS         equ     0484h  ; Number of character rows - 1
  37. BIOS_HEIGHT       equ      0485h  ; Bytes per character
  38. BIOS_EQUIP_INFO   equ     0487h  ; Miscellaneous equipment information
  39. BIOS_SWITCHES     equ      0488h  ; Switch settings
  40. BIOS_FLAGS        equ     0489h  ; More VGA info
  41. BIOS_DCC          equ     048A   ; Display combination code
  42.  
  43.  
  44.  
  45.  
  46. ;************************************************************************
  47. ;
  48. ;                      Miscellaneous registers
  49. ;
  50.  
  51. MISC_WRITE        equ     3C2h   ; Miscellaneous Output write
  52. MISC_READ         equ     3CCh   ; Miscellaneous Output read
  53. STATUS            equ     3DAh   ; Status register
  54.  
  55. ;************************************************************************
  56. ;
  57. ;                        Sequencer registers
  58. ;
  59.  
  60. SEQUENCER         equ     3C4h   ; Sequencer index
  61.         RESET     equ     0      ; Reset
  62.         CLOCK     equ     1      ; Clocking mode
  63.         MAPMASK   equ     2      ; Map Mask
  64.         CHARMAP   equ     3      ; Character Map Select
  65.         MODE      equ     4      ; Memory Mode 
  66.  
  67.  
  68. ;***********************************************************************
  69. ;
  70. ;                      CRT Controller registers
  71. ;
  72.  
  73. CRTC              equ     3D4h   ; CRTC index
  74.         OVFL      equ     07h    ; Overflow
  75.         PRS       equ     08h    ; Preset Row scan
  76.         HI_STRT   equ     0Ch    ; Start Address High
  77.         LO_STRT   equ     0Dh    ; Start Address Low
  78.         HI_CPOS   equ     0Eh    ; Cursor Position High
  79.         LO_CPOS   equ     0Fh    ; Cursor Position Low
  80.         VRE       equ     11h    ; Vertical Retrace End
  81.         OFFST     equ     13h    ; Offset
  82.         LCR       equ     14h    ; Line Compare 
  83.  
  84.  
  85. ;***********************************************************************
  86. ;
  87. ;                   Graphics Controller registers
  88. ;
  89.  
  90. GRAPHICS      equ     03CEh   ; Graphics Controller index
  91.         SET_RES   equ     0      ; Set/Reset
  92.         EN_SET    equ     1      ; Enable Set/Reset
  93.         CCMP      equ     2      ; Color Compare
  94.         ROTATE    equ     3      ; Data Rotate
  95.         READMAP   equ     4      ; Read Map Select
  96.         GMODE     equ     5      ; Graphics Mode
  97.         GMISC     equ     6      ; Miscellaneous
  98.         CDONTC    equ     7      ; Color Don't Care
  99.         BITMASK      equ      8      ; Bit Mask
  100.  
  101.  
  102. ;***********************************************************************
  103. ;
  104. ;                   Attribute Controller registers
  105. ;
  106.  
  107. ATTR              equ     3C0h   ; Attribute Controller index
  108.         PALETTE   equ     0      ; 0-15 Palette registers
  109.         AMODE     equ     10h    ; Attribute Mode Control
  110.         OVERSCAN  equ     11h    ; Oversacn Color Register
  111.         PLANE     equ     12h    ; Color Plane Enable
  112.         PAN       equ     13h    ; Horizontal Panning
  113.         COLOR_SEL equ     14h    ; Color Select
  114.  
  115.  
  116. ;*************************************************************************
  117. ;
  118. ;                    Video 7 Extension registers
  119. ;
  120.  
  121. X_BANK_SELECT     equ     0F6h   ; Extended Bank Select
  122. X_PAGE_SELECT     equ     0F9h   ; Extended Page Select
  123.