Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
charat [2019/05/04 21:41] – created neilscharat [2019/05/06 10:25] neils
Line 1: Line 1:
-====== CHARAT command ======+====== CHARAT ======
  
 Syntax: Syntax:
  
   charat <byte or int x_pos>, <byte or int y_pos>, <byte or int screencode>   charat <byte or int x_pos>, <byte or int y_pos>, <byte or int screencode>
 +  
 +The ''CHARAT'' command outputs a character at the given x and y position on the screen. All arguments can be of byte or integer type.
 +
 +Example:
 +
 + rem this puts an 'A' near the center of the screeen
 + charat 20, 10, 65 
 +
 +Note that the runtime library will not check if the values are within the screen boundaries. As ''CHARAT'' is just a convenience wrapper around ''POKE'', it can overwrite memory locations other than the screen memory, thus damaging the program or data. Use it with special care.