home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / EGAVGA / VGADOC01.ZIP / VESA.DOC < prev    next >
Encoding:
Text File  |  1991-12-04  |  6.2 KB  |  171 lines

  1. ----------104F00-----------------------------
  2. INT 10 - VESA SuperVGA BIOS - GET SuperVGA INFORMATION
  3.         AX = 4F00h
  4.         ES:DI -> 256-byte buffer for SuperVGA information (see below)
  5. Return: AL = 4Fh function supported
  6.         AH = status
  7.              00h successful
  8.              01h failed
  9. SeeAlso: AX=4F01h
  10.  
  11. Format of SuperVGA information:
  12. Offset  Size      Description
  13.  00h   4 BYTEs    signature ('VESA')
  14.  04h    WORD      VESA version number
  15.  06h    DWORD     pointer to OEM name
  16.  0Ah   4 BYTEs    capabilities
  17.  0Eh    DWORD     pointer to list of supported VESA and OEM video modes
  18.  12h   238 BYTEs  reserved
  19. ----------104F01-----------------------------
  20. INT 10 - VESA SuperVGA BIOS - GET SuperVGA MODE INFORMATION
  21.         AX = 4F01h
  22.         CX = SuperVGA video mode
  23.         ES:DI -> 256-byte buffer mode information (see below)
  24. Return: AL = 4Fh function supported
  25.         AH = status
  26.              00h successful
  27.              01h failed
  28. SeeAlso: AX=4F00h,AX=4F02h
  29.  
  30. Format of mode information:
  31. Offset Size   Description
  32.  00h   WORD   mode attributes
  33.               bit 0: mode supported
  34.               bit 1: optional information available
  35.               bit 2: BIOS output supported
  36.               bit 3: set if color, clear if monochrome
  37.               bit 4: set if graphics mode, clear if text mode
  38.  02h   BYTE   window A attributes
  39.               bit 0: exists
  40.               bit 1: readable
  41.               bit 2: writable
  42.               bits 3-7 reserved
  43.  03h   BYTE   window B attributes (as for window A)
  44.  04h   WORD   window granularity in K
  45.  06h   WORD   window size in K
  46.  08h   WORD   start segment of window A
  47.  0Ah   WORD   start segment of window B
  48.  0Ch   DWORD -> FAR window positioning function (equivalent to AX=4F05h)
  49.  10h   WORD   bytes per scan line
  50. ---remainder is optional for VESA modes, needed for OEM modes---
  51.  12h   WORD   width in pixels
  52.  14h   WORD   height in pixels
  53.  16h   BYTE   width of character cell in pixels
  54.  17h   BYTE   height if character cell in pixels
  55.  18h   BYTE   number of memory planes
  56.  19h   BYTE   number of bits per pixel
  57.  1Ah   BYTE   number of banks
  58.  1Bh   BYTE   memory model type
  59.  1Ch   BYTE   size of bank in K
  60. ----------104F02-----------------------------
  61. INT 10 - VESA SuperVGA BIOS - SET SuperVGA VIDEO MODE
  62.         AX = 4F02h
  63.         BX = mode
  64.              bit 15 set means don't clear video memory
  65. Return: AL = 4Fh function supported
  66.         AH = status
  67.              00h successful
  68.              01h failed
  69. SeeAlso: AX=4F01h,AX=4F03h
  70.  
  71. Values for VESA video mode:
  72.   00h-FFh OEM video modes (see AH=00h)
  73.  100h 640x400x256
  74.  101h 640x480x256
  75.  102h 800x600x16
  76.  103h 800x600x256
  77.  104h 1024x768x16
  78.  105h 1024x768x256
  79.  106h 1280x1024x16
  80.  107h 1280x1024x256
  81.  108h 80x60 text
  82.  109h 132x25 text
  83.  10Ah 132x43 text
  84.  10Bh 132x50 text
  85.  10Ch 132x60 text
  86. ----------104F03-----------------------------
  87. INT 10 - VESA SuperVGA BIOS - GET CURRENT VIDEO MODE
  88.         AX = 4F03h
  89. Return: AL = 4Fh function supported
  90.         AH = status
  91.              00h successful
  92.              01h failed
  93.         BX = video mode (see AX=4F02h)
  94. SeeAlso: AX=4F02h
  95. ----------104F04-----------------------------
  96. INT 10 - VESA SuperVGA BIOS - SAVE/RESTORE SuperVGA VIDEO STATE
  97.         AX = 4F04h
  98.         DL = subfunction
  99.              00h get state buffer size
  100.                  Return: BX = number of 64-byte blocks needed
  101.              01h save video states
  102.                  ES:BX -> buffer
  103.              02h restore video states
  104.                  ES:BX -> buffer
  105.                  CX = flags for states to save/restore
  106.                       bit 0: video hardware state
  107.                       bit 1: video BIOS data state
  108.                       bit 2: video DAC state
  109.                       bit 3: SuperVGA state
  110. Return: AL = 4Fh function supported
  111.         AH = status
  112.              00h successful
  113.              01h failed
  114. ----------104F05-----------------------------
  115. INT 10 - VESA SuperVGA BIOS - CPU VIDEO MEMORY CONTROL
  116.         AX = 4F05h
  117.         BH = subfunction
  118.              00h select video memory window
  119.                  DX = window address in video memory (in granularity units)
  120.              01h get video memory window
  121.                  Return: DX = window address in video memory (in gran. units)
  122.         BL = window number
  123.              00h window A
  124.              01h window B
  125. Return: AL = 4Fh function supported
  126.         AH = status
  127.              00h successful
  128.              01h failed
  129. SeeAlso: AX=4F06h,AX=4F07h,AX=7000h/BX=0004h
  130. ----------104F06-----------------------------
  131. INT 10 - VESA SuperVGA BIOS 1.1 - GET/SET LOGICAL SCAN LINE LENGTH
  132.         AX = 4F06h
  133.         BL = function
  134.              00h set scan line length
  135.                  CX = desired width in pixels
  136.              01h get scan line length
  137. Return: AL = 4Fh if function supported
  138.         AH = status
  139.              00h successful
  140.              01h failed
  141.         BX = bytes per scan line
  142.         CX = number of pixels per scan line
  143.         DX = maximum number of scan lines
  144. Notes:     if the desired width is not achievable, the next larger width will be set
  145.        the scan line may be wider than the visible area of the screen
  146.        this function is valid in text modes, provided that values are
  147.        multiplied by the character cell width/height
  148. SeeAlso: AX=4F01h,AX=4F05h,AX=4F07h
  149. ----------104F07BH00-------------------------
  150. INT 10 - VESA SuperVGA BIOS 1.1 - GET/SET DISPLAY START
  151.         AX = 4F07h
  152.         BH = 00h (reserved)
  153.         BL = 00h set display start
  154.                  CX = leftmost displayed pixel in scan line
  155.                  DX = first displayed scan line
  156.            = 01h get display start
  157.                  Return: BH = 00h
  158.                          CX = leftmost displayed pixel in scan line
  159.                          DX = first displayed scan line
  160. Return: AL = 4Fh if function supported
  161.         AH = status
  162.              00h successful
  163.              01h failed
  164. Note: this function is valid in text modes, provided that values are
  165.       multiplied by the character cell width/height
  166. SeeAlso: AX=4F01h,AX=4F05h,AX=4F06h
  167. ----------104FFF-----------------------------
  168. INT 10 - VESA SuperVGA BIOS - Everex - TURN VESA ON/OFF
  169.         AX = 4FFFh
  170.         DL = new state (00h off, 01h on)
  171.