home *** CD-ROM | disk | FTP | other *** search
/ 20th Century Video Alman…Century in Depth - Sports / ALMANAC_03.iso / vesa / everex / vesaref.doc < prev    next >
Text File  |  1993-04-14  |  9KB  |  202 lines

  1.                 VESA SuperVGA BIOS Extensions
  2. --------------------------------------------------------------------------
  3.     - VESA Standard Modes -                          
  4.                                       
  5. 15-bit mode    7-bit mode                          
  6. number        number        Resolution    Colors                     
  7. ------------------------------------------------------              
  8. 100h        -        640x400        256              
  9. 101h        -        640x480        256              
  10. 102h        6Ah        800x600        16              
  11. 103h        -        800x600        256              
  12. 104h        -        1024x768    16              
  13. 105h        -        1024x768    256              
  14. 106h        -        1280x1024    16              
  15. 107h        -        1280x1024    256              
  16. 108h        -        80x30        color text          
  17. 109h        -        132x25        color text          
  18. 10Ah        -        132x43        color text          
  19. 10Bh        -        132x50        color text          
  20. 10Ch        -        132x60        color text          
  21. --------------------------------------------------------------------------
  22.     - Return Status from a VESA BIOS Extention Call    -          
  23.                                       
  24. AL == 4Fh; Function is supported                        
  25. AH == 00h; Function call successful                        
  26. NOTE: All non-zero returns in AH should be treated as failures.            
  27. --------------------------------------------------------------------------
  28.     * Return Super VGA Information *                    
  29. Entry:    AH = 4Fh    ; Super VGA support                  
  30.     AL = 00h    ; Return Super VGA Information                   
  31.     ES:DI       ; Pointer to 256 byte buffer                  
  32. Exit:    AX        ; Status                         
  33. --------------------------------------------------------------------------
  34.     - Structure of the Super VGA Information buffer -          
  35. VgaInfoBlock    struc                              
  36.  VESASignature    db 'VESA'    ;4 signature bytes              
  37.  VESAVersion    dw ?        ;VESA version number              
  38.  OEMStringPtr    dd ?        ;Pointer to OEM string              
  39.  Capabilities    db 4 dup (?)    ;capabilities of video environment      
  40.  VideoModePtr    dd ?        ;pointer to supported SuperVGA modes      
  41.  TotalMemory    dw ?        ;(VBE v1.1) :Num of 64K blocks on board      
  42.         db (236) DUP 00h                         
  43. VgaInfoBlock    ends                              
  44. --------------------------------------------------------------------------
  45.     * Return Super VGA Mode Information *                  
  46. Entry:    AH = 4Fh    ; Super VGA support                      
  47.     AL = 01h    ; Return Super VGA Mode Information           
  48.     CX = Super VGA video mode                         
  49.     ES:DI       ; Pointer to 256 byte buffer                   
  50. Exit:    AX        ; Status                           
  51. --------------------------------------------------------------------------
  52.     - Structure of the Super VGA Information buffer -               
  53. ModeInfoBlock    struc                              
  54.  ;mandatory information                              
  55.  ModeAttributes        dw ?    ;mode attributes              
  56.  WinAAttributes        db ?    ;Window A attributes              
  57.  WinBAttributes        db ?    ;Window B attributes              
  58.  WinGranularity        dw ?    ;window granularity              
  59.  WinSize        dw ?    ;window size                  
  60.  WinASegment        dw ?    ;Window A start segment              
  61.  WinBSegment        dw ?    ;Window B start segment              
  62.  WinFuncPtr        dd ?    ;pointer to window function          
  63.  BytesPerScanLine    dw ?    ;bytes per scan line              
  64.                                       
  65.  ;extended information                              
  66.  ;optional information                              
  67.  XResolution        dw ?    ;horizontal resolution              
  68.  YResolution        dw ?    ;vertical resolution              
  69.  XCharSize        db ?    ;character cell width              
  70.  YCharSize        db ?    ;character cell height              
  71.  NumberOfPlanes        db ?    ;number of memory planes          
  72.  BitsPerPixel        db ?    ;bits per pixel                  
  73.  NumberOfBanks        db ?    ;number of banks              
  74.  MemoryModel        db ?    ;memory model type              
  75.  BankSize        db ?    ;bank size in K                  
  76.  NumberOfImagePages    db ?    ;(VBE v1.1) Number of pages             
  77.  Reserved        db 1    ;(VBE v1.1) Signature ID          
  78.             db (225) DUP 00h                     
  79. ModeInfoBlock    ends                              
  80. --------------------------------------------------------------------------
  81.     - Format of ModeAttributes in the Super VGA Information Structure -      
  82. D0 = Mode supported in hardware                          
  83.         0=Mode not supported in hardware                        
  84.         1=Mode supported in hardware                      
  85. D1 = Extended information available                      
  86.         0=Extended mode information not available                 
  87.         1=Extended mode information available                  
  88. D2 = Output functions supported by BIOS                      
  89.         0=Output functions not supported by BIOS                     
  90.         1=Output functions supported by BIOS                  
  91. D3 = Monochrome/color mode                                   
  92.         0=Monochrome mode                                   
  93.         1=Color mode                              
  94. D4 = Mode type                                  
  95.         0=Text mode                                     
  96.         1=Graphics mode                              
  97. D5-D15 = Reserved (=0)                              
  98. --------------------------------------------------------------------------
  99.      - Format of WinAAttributes and WinBAttributes in the Super VGA       
  100.                       Information Structure -                  
  101. D0 = Window supported                              
  102.         0=Window is not supported                             
  103.         1=Window is supported                          
  104. D1 = Window readable                              
  105.         0=Window is not readable                         
  106.         1=Window is readable                          
  107. D2 = Window writable                              
  108.         0=Window is not writable                         
  109.         1=Window is writable                          
  110. D3-D7 = Reserved (=0)                              
  111. --------------------------------------------------------------------------
  112.     - Format of MemoryModel in the Super VGA Information Structure -      
  113. 00h = Text mode                                    
  114. 01h = CGA graphics                                
  115. 02h = Hercules graphics                                
  116. 03h = 4-plane planar                                
  117. 04h = Packed pixel                                
  118. 05h = Non-chain 4, 256 color                            
  119. 06h-0Fh = Reserved, to be defined by VESA                    
  120. 10h-FFh = To be defined by OEM                            
  121. --------------------------------------------------------------------------
  122.     - Set Super VGA Video Mode -
  123. Entry:  AH = 4Fh     ; Super VGA support
  124.         AL = 02h     ; Set Super VGA Video Mode
  125.         BX = Video mode
  126.          D0-D14 = Video mode number
  127.          D15 = Clear memory flag
  128.                   0=Clear video memory
  129.                   1=Don't clear video memory
  130. Exit:   AX         ; Status
  131. -------------------------------------------------------------------------
  132.     - Return current video mode -
  133. Entry:  AH = 4Fh    ; Super VGA support
  134.         AL = 03h    ; Return current video mode
  135. Exit:   AX        ; Status
  136.         BX         ; Current video mode
  137. -------------------------------------------------------------------------
  138.     - Save/Restore Super VGA Video State -
  139. Entry:  AH = 4Fh    ; Super VGA support
  140.         AL = 04h    ; Save/Restore Super VGA Video State
  141.         CX = Requested states
  142.                 D0 = Save/Restore video hardware state
  143.             D1 = Save/Restore video BIOS data state
  144.             D2 = Save/Restore video DAC state
  145.             D3 = Save/Restore video Super VGA state
  146.         DL = Sub-function
  147.             00 = Return save/restore state buffer size
  148.             01 = Save Super VGA video state
  149.                 02 = Restore Super VGA video state
  150.         ES:BX = pointer to buffer (DL = 01, or DL = 02)
  151. Exit:   AX        ;Status
  152.         BX =  Number of 64-byte blocks to hold the state buffer (DL = 00)
  153. ------------------------------------------------------------------------- 
  154.     - Super VGA Video Memory Window Control - 
  155. Entry:  AH = 4Fh    ; Super VGA support
  156.         AL = 05h    ; Super VGA Video Memory Window Control
  157.         BH = Sub-function
  158.                 00=Select Super VGA Video Memory Window
  159.                 01=Return Super VGA Video Memory Window
  160.         BL = Window A/B (0/1)
  161.         DX = Window position in video memory (in window granularity units)
  162. Exit:   AX        ; Status              
  163.          DX = Window position in video memory (in window granularity units)
  164. ------------------------------------------------------------------------- 
  165.     - Super VGA Set Logical Scan Line Length - (VBE v1.1)
  166. Entry:  AH = 4Fh    ; Super VGA support
  167.         AL = 06h    ; Super VGA Set/Get Logical Scan Line Length
  168.         BL = 00h    ; Set Scan Line Length
  169.         CX = Desired Width in Pixels
  170. Exit:   AX        ; Status
  171.         BX = new Bytes Per Scan Line
  172.         CX = actual Pixels Per Scan Line
  173.         DX = total Number of Scan Lines
  174. -------------------------------------------------------------------------
  175.     - Super VGA Get Logical Scan Line Length - (VBE v1.1)
  176. Entry:  AH = 4Fh    ; Super VGA support
  177.         AL = 06h    ; Super VGA Set/Get Logical Scan Line Length
  178.         BL = 01h    ; Get Scan Line Length
  179. Exit:   AX        ; Status
  180.         BX = Bytes Per Scan Line
  181.         CX = Pixels Per Scan Line
  182.         DX = total Number of Scan Lines
  183. -------------------------------------------------------------------------
  184.     - Super VGA Set Display Start -    (VBE v1.1)
  185. Entry:  AH = 4Fh    ; Super VGA support
  186.         AL = 07h    ; Super VGA Set/Get Display Start
  187.         BH = 00h    ; reserved (must be 00h)
  188.         BL = 00h    ; Set Display Start
  189.         CX = Virtual X coordinate
  190.         DX = Virtual Y coordinate
  191. Exit:   AX        ; Status
  192. -------------------------------------------------------------------------
  193.     - Super VGA Get Display Start - (VBE v1.1)
  194. Entry:  AH = 4Fh    ; Super VGA support
  195.         AL = 07h    ; Super VGA Set/Get Display Start
  196.         BL = 01h    ; Get Display Start
  197. Exit:   AX        ; Status
  198.         BH = 00h    ; reserved (will be 00h)
  199.         CX = Virtual X coordinate
  200.         DX = Virtual Y coordinate
  201. -------------------------------------------------------------------------