The LazyBoy Library Manual - GetTextMode

Part of the CRT group.

%imacro GetTextMode 1
Prefers: 16-bit register

Return the current video mode. Note that VESA modes start at 0x0100.

Examples:

        GetTextMode  cx          ; return mode as CX
        GetTextMode  [di]        ; store current mode at [DS:DI]

See also: TextMode.