Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 10 - vesa supervga bios - get supervga mode information http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 10 - VESA SuperVGA BIOS - GET SuperVGA MODE INFORMATION
        AX = 4F01h
        CX = SuperVGA video mode
        ES:DI -> 256-byte buffer mode information (see below)
Return: AL = 4Fh function supported
        AH = status
            00h successful
            01h failed

Format of mode information:
Offset  Size    Description
 00h    WORD    mode attributes
                bit 0: mode supported
                bit 1: optional information available
                bit 2: BIOS output supported
                bit 3: set if color, clear if monochrome
                bit 4: set if graphics mode, clear if text mode
 02h    BYTE    window A attributes
                bit 0: exists
                bit ???: readable
                bit ???: writable
 03h    BYTE    window B attributes (as for window A)
 04h    WORD    window granularity
 06h    WORD    window size
 08h    WORD    start segment of window A
 0Ah    WORD    start segment of window B
 0Ch    DWORD   -> FAR window positioning function (equivalent to AX=4F05h)
 10h    WORD    bytes per scan line
---remainder is optional for VESA modes, needed for OEM modes---
 12h    WORD    width in pixels
 14h    WORD    height in pixels
 16h    BYTE    width of character cell in pixels
 17h    BYTE    height if character cell in pixels
 18h    BYTE    number of memory planes
 19h    BYTE    number of bits per pixel
 1Ah    BYTE    number of banks
 1Bh    BYTE    memory model type
 1Ch    BYTE    size of bank in K

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson