Obtains the current display mode of the active video controller.
Call with:
AH = 0FH
Returns:
AH = number of character columns on screen
AL = display mode (see Int 10H Function 00H)
BH = active display page
Note:
This function can be called to obtain the screen width before clearing the screen with Int 10H Functions 06H or 07H.