The LazyBoy Library Manual - GetLimitXY

Part of the CRT group.

%imacro GetLimitXY 1
Prefers: 16-bit register

Return the (lower-right) maximum cursor position inside the current window. The coordinates are 0 based.

Examples:

    GetLimitXY  dx          ; return DL max X, DH max Y
    GetLimitXY  [di]        ; store max XY at [DS:DI]

See also: GotoXY and Window.