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

操作系统开发

开发平台:

Visual C++

  1. ;*
  2. ;* CW : Character Windows
  3. ;*
  4. ;* egasave.inc : Screen Save IBM specific info
  5. ;*****************************************************************************
  6. EGA_VIDS STRUC ;* VIDS structure + private info
  7. vidsPrefix DB cbVidsMin DUP (?)
  8. vparmCursorVids DW ? ;* cursor size
  9. rgwCursorPosVids DW 8 DUP (?) ;* cursor positions
  10. ;* for 8 pages
  11. fClearRegenVids db ? ;* 80H for no regen clr
  12. ayPointsVids DB ? ;* char points
  13. ayMacVids DB ? ;* rows
  14. ayOverScanVids DB ?
  15. cwSwapVids DW ? ;* lines*columes
  16. bCGABgVids DB ? ;* CGA Background color
  17. bCGAPalVids DB ? ;* 4-color palette
  18. rgbEGAPaletteVids DB 21 DUP (?) ;* attr ctrl regs
  19. rgbPS2PaletteVids DB 3 DUP (?) ;* reserved for DAC color regs
  20. EGA_VIDS ENDS
  21. ;*****************************************************************************
  22. GRChipOffset EQU 10H
  23. CRTCChipOffset EQU 00H
  24. SEQChipOffset EQU 08H
  25. AttrChipOffset EQU 18H
  26. CGA_6845_MODE EQU 3D8H
  27. CGA_6845_STATUS EQU 3DAH
  28. ; Number of lines when 8x8 character set is used in the following graphics
  29. ; modes:            0d  0e  0f  10  11  12  13
  30. ;                   |   |   |   |   |   |   |
  31. ;                   v   v   v   v   v   v   v
  32. GraphicsModeRows DB 25, 25, 43, 43, 60, 60, 25
  33. ;
  34. ; ColourPalette - used to reset the EGA palette for 16-color
  35. ;   modes with a Color Display.
  36. ;
  37. labelB <ColourPalette>
  38. ; RGBrgb
  39. DB 000000B  ;black
  40. DB 000001B  ;blue
  41. DB 000010B  ;green
  42. DB 000011B  ;cyan
  43. DB 000100B  ;red
  44. DB 000101B  ;magenta
  45. labelB <ColourPaletteYellow>
  46. DB 000110B  ;yellow
  47. DB 000111B  ;white
  48. DB 111000B  ;gray
  49. DB 111001B  ;light blue
  50. DB 111010B  ;light green
  51. DB 111011B  ;light cyan
  52. DB 111100B  ;light red
  53. DB 111101B  ;light magenta
  54. DB 111110B  ;light yellow
  55. DB 111111B  ;bright white
  56. db 0 ;Overscan
  57. ;
  58. ; MonoPalette - used to reset the EGA palette for 16-color
  59. ;   modes with a monochrome Display.
  60. ;
  61. labelB <MonoPalette>
  62. ;  IV   
  63. DB 000000B  ;black
  64. DB 001000B  ;white
  65. DB 001000B  ;white
  66. DB 001000B  ;white
  67. DB 001000B  ;white
  68. DB 001000B  ;white
  69. DB 001000B  ;white
  70. DB 001000B  ;white
  71. DB 010000B  ;gray
  72. DB 011000B  ;bright white
  73. DB 011000B  ;bright white
  74. DB 011000B  ;bright white
  75. DB 011000B  ;bright white
  76. DB 011000B  ;bright white
  77. DB 011000B  ;bright white
  78. DB 011000B  ;bright white
  79. db 0 ;Overscan
  80. BIOSINT10 label dword
  81. lpbBIOSINT10_Offset dw 0
  82. lpbBIOSINT10_Segment dw 0
  83. EgaPaletteMirror db 0,1,2,3,4,5,14H,7,38H,39H,3aH,3bH,3cH,3dH,3eH,3fH
  84. OverScanMirror db 0
  85. ;
  86. ; bCGABg - CGA background colour
  87. ;          Set by INT 10 with AH=0B, BH=0, BL=bCGABg
  88. ;
  89. ; bCGAPal - CGA 320x200 4-colour palette
  90. ;     Set by INT 10 with AH=0B, BH=1, BL=bCGAPal
  91. ;
  92. ; -1 indicates value not set.
  93. ;
  94. bCGABg db -1
  95. bCGAPal db -1