Function | Address | Description |
---|---|---|
PLOT | FFF0 | Set cursor location |
This routine either reads or sets the text cursor's location.
Reading cursor location
A call to this routine with the accumulator carry flag set loads the current position of the cursor on the screen (in X,Y coordinates) into the Y and X registers. Y is the column number of the cursor location (0-39), and X is the row number of the location of the cursor (0-24).
Example:
Note: FREKZP (0x00FB) in this example is a 4 byte block of zeropage memory unused by Basic or Kernal and is available for user code.
Setting cursor location
A call with the carry bit clear moves the cursor to X,Y as determined by the Y and X registers.
Example: