The LazyBoy Library Manual - GetWhereXY

Part of the CRT group.

%imacro GetWhereXY 1
Prefers: 16-bit register

Return the current cursor position inside the current window. The coordinates are 0 based. The low byte will be the X coordinate. The high byte will be the Y coordinate.

Examples:

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

See also: GotoXY, GetLimitXY and Window.