Int 10H [MDA] [CGA] [PCjr] [EGA] [MCGA] [VGA] Function 02H Set cursor position

Positions the cursor on the display, using text coordinates.

Call with:

AH = 02H

BH = page

DH = row (y coordinate)

DL = column (x coordinate)

Returns:

Nothing

Notes:

A separate cursor is maintained for each display page, and each can be set independently with this function regardless of the currently active page. The number of available display pages depends on the video adapter and current display mode. See Int 10H Function 05H.

Text coordinates (x,y)=(0,0) are the upper left corner of the screen.

The maximum value for each text coordinate depends on the video adapter and current display mode, as follows:

Mode Maximum x Maximum y 00H 39 24 01H 39 24 02H 79 24 03H 79 24 04H 39 24 05H 39 24 06H 79 24 07H 79 24 08H 19 24 09H 39 24 0AH 79 24 0BH reserved 0CH reserved 0DH 39 24 0EH 79 24 0FH 79 24 10H 79 24 11H 79 29 12H 79 29 13H 39 24