llgrp.inc
上传用户:xiaoan1112
上传日期:2013-04-11
资源大小:19621k
文件大小:3k
源码类别:

操作系统开发

开发平台:

Visual C++

  1. ;***
  2. ; llgrp.inc - 01-May-87 - lowlevel graphics definitions
  3. ;***
  4. .XLIST
  5. ;***
  6. ;
  7. ; Copyright <C> 1987, Microsoft Corporation
  8. ;
  9. ;Purpose:
  10. ; Contains the definition of symbols used in lowlevel graphics modules.
  11. ;******************************************************************************
  12. ; Graphics adapter types (values used in b$Adapter)
  13. MDPA = 00000001B ;Monochrome Display/Printer Adapter
  14. CGA = 00000010B ;Color Graphics Adapter
  15. EGA = 00000100B ;Enhanced Graphics Adapter
  16. VGA = 00001000B ;Video Graphics Array
  17. MCGA = 00010000B ;MultiColor Graphics Array
  18. HGC = 00100000B ;Hercules Graphics Card  [1]
  19. OGA = 01000000B ;Olivetti Graphics Adapter [4]
  20. ; Monitor types (values used in b$Monitor)
  21. Monochrome  =  00000001B ;Monochrome monitor
  22. StdColor    =  00000010B ;Standard Color monitor
  23. ; (or Enhanced Color in compatibility mode)
  24. EnhColor    =  00000100B ;Enhanced Color monitor
  25. AnalogMono  =  00001000B ;Analog monitor supporting monochrome modes
  26. AnalogColor =  00010000B ;Analog monitor supporting color modes
  27. ; Note: The definition of AnalogMono and AnalogColor is somewhat unusual:
  28. ; IBM's Analog monitors are called Analog Color (which shows 256k colors)
  29. ; and Analog Monochrome (which shows 64 shades of gray). This is NOT
  30. ; the definition being used here.  That distinction is unnecessary for
  31. ; our purposes because both types support what the bios considers "color"
  32. ; modes and "monochrome" modes.  The definition we use is based on what
  33. ; bios modes are available in the current environment.  This is defined
  34. ; by what secondary video cards (if any) are present in the machine.
  35. ; If a CGA is present, then the VGA driving the Analog monitor is
  36. ; limited by the bios to monochrome modes (7 & F).  This is "AnalogMono".
  37. ; Similarly, if there is an MDPA present, the VGA is limited by the bios
  38. ; to using color modes (all modes except 7 & F). This is "AnalogColor".
  39. ; If the VGA is the only video card in the system, then both the
  40. ; AnalogMono bit and the AnalogColor bit of b$Monitor will be set,
  41. ; indicating that all bios modes (color and monochrome) are available.
  42. ; Constants used b$VGAmodes to test which BIOS modes are supported.
  43. VGAmode0h = 00000001B ; supports BIOS mode 0h
  44. VGAmode1h = 00000010B ; supports BIOS mode 1h
  45. VGAmode2h = 00000100B ; supports BIOS mode 2h
  46. VGAmode3h = 00001000B ; supports BIOS mode 3h
  47. VGAmode4h = 00010000B ; supports BIOS mode 4h
  48. VGAmode5h = 00100000B ; supports BIOS mode 5h
  49. VGAmode6h = 01000000B ; supports BIOS mode 6h
  50. VGAmode7h = 10000000B ; supports BIOS mode 7h
  51. VGAmodeDh = 20h ; supports BIOS mode Dh
  52. VGAmodeEh = 40h ; supports BIOS mode Eh
  53. VGAmodeFh = 80h    ; supports BIOS mode Fh
  54. VGAmode10h = 00000001B ; supports BIOS mode 10h
  55. VGAmode11h = 00000010B ; supports BIOS mode 11h
  56. VGAmode12h = 00000100B ; supports BIOS mode 12h
  57. VGAmode13h = 00001000B ; supports BIOS mode 13h
  58. HALF = 1 ;[4] Hercules HALF mode value
  59. .LIST