type 'run' to run program type 'clear' to clear program type 'help' for... yknow... help typing a command without a line number executes it immediately up/down to scroll TEST PROGRAMS: hello world ☺ 5 print "hello world \c1" hello user 5 out "What is your name? " 10 prompt 15 join "Hello, " $0 20 join $0 "!" 25 print $0 bel 5 "\a" count to 10 / loop 5 mem 1 0 10 add $1 1 15 mem 1 $0 20 print $1 25 pause 0.5 30 lst $1 10 35 if $0 goto 10 subroutines! (this one increments a memory slot) 5 goto 30 10 add $$1 1 # increment, we take slot $1 as our argument 15 mem $1 $0 # set memory 20 return 25 mem 2 0 # our memory slot is 0 30 mem 1 2 # set the memory to be incremented to $2 35 gosub 10 40 join "incremented memory slot: " $$1 45 out $0 # expected output: 1 (0+1=1) fancy hello world with subroutine 5 cls # clear screen 10 goto 70 15 mem 2 0 # index 20 add $2 1 25 mem 2 $0 # increment index 30 add $2 1 35 slice $1 $2 $0 # get next character 40 out $0 # print character 45 pause 0.1 # wait a bit 50 len $1 55 lst $2 $0 # is index < length / are there more chars 60 if $0 goto 20 # if so repeat 65 return 70 mem 1 "hello\n" # our text 75 gosub 15 80 mem 1 "world\n" # our other text 85 gosub 15