Int 10 Fn 4E02 - Vesa Xga Bios Extensions - Return Xga Mode Information [V]
AX = 4E02h
CX = Video mode
DX = XGA handle
ES:DI -> 256 byte buffer for mode information (see #0071)
Return: AL = 4Eh if function supported
AH = status
00h function successful
else error code
See Also: AX=4E00h,AX=4E01h
Format of XGA mode information:
Offset Size Description (Table 0071)
00h WORD attributes of the mode (see #0072)
02h WORD bytes per logical scanline
04h WORD horizontal resolution in pixels
06h WORD vertical resolution in scanlines
08h BYTE character Width in pixels
09h BYTE character Height in pixels
0Ah BYTE number of planes
0Bh BYTE bits per pixels
0Ch BYTE memory model (see #0073)
0Dh BYTE number of Image Pages
0Eh BYTE number of Red bits
0Fh BYTE bit position of Red bit field
10h BYTE number of Green bits
11h BYTE bit position of Green bit field
12h BYTE number of Blue bits
13h BYTE bit position of Blue bit field
14h BYTE number of Reserved bits
15h BYTE bit position of Reserved bit field
16h 235 BYTEs reserved
Bitfields for XGA mode attributes:
Bit(s) Description (Table 0072)
0 set if mode is supported
1 reserved
2 output is supported by the BIOS
3 reserved
4 if set this is a graphics mode (VGA registers inactive, XGA active),
if clear this is a text mode (VGA registers active, XGA inactive)
(Table 0073)
Values for XGA video memory model:
00h Text Mode
01h CGA graphics
02h Hercules graphics
03h 4-planar graphics
04h Packed Pixel
05h Non-chain 4, 256 color
06h Direct Color
07h YUV-24