Move the cursor to w new position within the current window. The coordinates are 0 based.
Basic positions:
FIRST | move cursor to first column and first row |
LAST | move cursor to last column of last row |
HOME | move cursor to first column on current line |
END | move cursor to last column on current line |
TOP | move cursor to same column on first row |
BOTTOM | move cursor to same column on last row |
Relative positions which set the Carry Flag when unable to perform the request:
LEFT | move cursor left one column |
RIGHT | move cursor right one column |
UP | move cursor up one row |
DOWN | move cursor down on row |
Logical positions that will set the Carry Flag if the screen scrolls:
NEXT | move cursor to next write position. If at the end of a line, the cursor will be moved to the first position on the next line. The screen will scroll if this occurs on the last line of the window. |
PREV | move cursor back one write position. If at the first position of a line, the cursor will be moved to the first position on the previous line. The screen will scroll if this occurs on the first line of the window. |
Examples:
GotoXY dx ; Move cursor to column DL, row DH GotoXY cl, ch ; Move cursor to column CL, row CH GotoXY [si] ; Move cursor to position stored at [DS:SI] GotoXY last ; goto last column in last row in window
See also: GetWhereXY, GetLimitXY and Window.