mk90.basic.statements

Statement LOCATE

Set the text cursor position.

Syntax

LOCATE column, row

Parameters

ParameterMeaning
columnExpression in the inclusive range 0–29.
rowExpression in the inclusive range 0–9.

Behavior

Coordinates are zero-based character cells; the first parameter is the column. Text can wrap and scroll the console as usual after this position. Out-of-range values cause runtime status 35.

Example

10 CLS
20 LOCATE 4,2
30 PRINT "MK90"
40 END

Limits and diagnostics

These are text coordinates, not the 120×64 pixel coordinates used by drawing statements.

Status-code reference.

See also

PRINT · CLS · PSET · Language syntax