KOH_5F29h

5F29h – Get Mode Information

This function returns the requested mode’s resolution, color depth, and maximum required bandwidth using its current refresh rate. This function is applied to extended-graphics modes only. If the mode number is not an extended graphics mode, the function will return failure.

Calling Registers:

AX = 5F29h, Get Mode Information function

BH = Mode To Use:

= 80h, Current Mode

= 00h - 7Fh, Given Mode Number

Return Registers:

AX = Return Status (function not supported if AL != 5Fh):

= 005Fh, Function supported and successful

= 015Fh, Function supported but failed

EBX bits 31 - 16 = Mode horizontal (X) resolution in pixels

EBX bits 15 - 0 = Mode vertical (Y) resolution in pixels

ECX bits 31 - 16 = Maximum bandwidth in megabytes per second

ECX bits 15 - 0 = Color depth in bits per pixel




*Other names and brands may be claimed as the property of others.
Revised April 2013