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 - video - functionality/state information (ps,vga/mcga) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 10 - VIDEO - FUNCTIONALITY/STATE INFORMATION (PS,VGA/MCGA)
        AH = 1Bh
        BX = implementation type
           = 0000h return funtionality/state information
        ES:DI -> 64 byte buffer for state information (see below)
Return: AL = 1Bh if function supported
            ES:DI buffer filled with state information
SeeAlso: AH=15h

Format of state information:
Offset  Size    Description
 00h    DWORD   address of static funtionality table (see below)
 04h    BYTE    video mode in effect
 05h    WORD    number of columns
 07h    WORD    length of regen buffer in bytes
 09h    WORD    starting address of regen buffer
 0Bh    WORD    cursor position for page 0
 0Dh    WORD    cursor position for page 1
 0Fh    WORD    cursor position for page 2
 11h    WORD    cursor position for page 3
 13h    WORD    cursor position for page 4
 15h    WORD    cursor position for page 5
 17h    WORD    cursor position for page 6
 19h    WORD    cursor position for page 7
 1Bh    WORD    cursor type
 1Dh    BYTE    active display page
 1Eh    WORD    CRTC port address
 20h    BYTE    current setting of register (3?8)
 21h    BYTE    current setting of register (3?9)
 22h    BYTE    number of rows
 23h    WORD    bytes/character
 25h    BYTE    DCC of active display
 26h    BYTE    DCC of alternate display
 27h    WORD    number of colors supported in current mode
 29h    WORD    number of pages supported in current mode
 2Ah    BYTE    number of scan lines active
                (0,1,2,3) = (200,350,400,480)
 2Bh    BYTE    primary character block
 2Ch    BYTE    secondary character block
 2Dh    BYTE    miscellaneous flags
                bit 0 all modes on all displays on
                    1 gray summing on
                    2 monochrome display attached
                    3 default palette loading disabled
                    4 cursor emulation enabled
                    5 0 = intensity; 1 = blinking
                    6 reserved
                    7 reserved
 2Eh  3 BYTEs   reserved
 31h    BYTE    video memory available
                00h = 64K, 01h = 128K, 02h = 192K, 03h = 256K
 32h    BYTE    save pointer state flags
                bit 0 512 character set active
                    1 dynamic save area present
                    2 alpha font override active
                    3 graphics font override active
                    4 palette override active
                    5 DCC override active
                    6 reserved
                    7 reserved
 33h 13 BYTEs   reserved

Format of Static Functionality Table:
Offset  Size    Description
 00h    BYTE    modes supported #1
                bit 0 to bit 7 = 1 modes 0,1,2,3,4,5,6 supported
 01h    BYTE    modes supported #2
                bit 0 to bit 7 = 1 modes 8,9,0Ah,0Bh,0Ch,0Dh,0Eh,0Fh supported
 02h    BYTE    modes supported #3
                bit 0 to bit 3 = 1 modes 10h,11h,12h,13h supported
                bit 4 to bit 7 reserved
 03h  4 BYTEs   reserved
 07h    BYTE    scan lines supported
                bit 0 to bit 2 = 1 if scan lines 200,350,400 supported
 08h    BYTE    total number of character blocks available in text modes
 09h    BYTE    maximum number of active character blocks in text modes
 0Ah    BYTE    miscellaneous function flags #1
                bit 0 all modes on all displays function supported
                    1 gray summing function supported
                    2 character font loading function supported
                    3 default palette loading enable/disable supported
                    4 cursor emulation function supported
                    5 EGA palette present
                    6 color palette present
                    7 color paging function supported
 0Bh    BYTE    miscellaneous function flags #2
                bit 0 light pen supported
                    1 save/restore state function 1Ch supported
                    2 intensity blinking function supported
                    3 Display Combination Code supported
                  4-7 reserved
 0Ch    WORD    reserved
 0Eh    BYTE    save pointer function flags
                bit 0 512 character set supported
                    1 dynamic save area supported
                    2 alpha font override supported
                    3 graphics font override supported
                    4 palette override supported
                    5 DCC extension supported
                    6 reserved
                    7 reserved
 0Fh    BYTE    reserved

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