Variables


You can use variables to store information, such as a number or a text. All variables begin with a letter A - Z. If it is a text variable add $ to the letter.

Numbers

Use letters A - Z

Example:
10 LET A = 127
20 LET X = 3.14
30 LET ABC = 23  // WRONG!!
40 LET a = 23  // WRONG , only uppercase

Strings

Use letters A$ - Z$

Example:
10 LET A$ = "fun"
20 LET X$ = "have a nice day"
30 LET ABC$ = "bad"  // WRONG!! 
40 LET a$ = 23  // WRONG , only uppercase

Mirror

The screen is 400x400 pixels. The mirror is independent to the screen, and can store 400x400 extra numbers as row,column, where both row and column are between 0 and 399.


Example:
10 MIRROR 20,398,99
20 MIRROR X,Y,C
30 GET MIRROR 0,22,A
40 GET MIRROR X,Y,B
50 GET MIRROR 2,400,A // WRONG , mirror is 400,400
    
In line 10 , value 99 is stored in mirror element 20,398
In line 30 , we read the value in 0,22 to variable A

Next