1 rem *** MikeOS BASIC demo ***
5 print
"Which program do you want to run?"
13 if x
= '1' then goto runhex
14 if x
= '2' then goto runmiketron
21 rem *** Hex dumper ***
23 print
"Enter a filename to make a hex dump from:"
29 if r
= 1 then goto hexerror
37 if s
= 0 then goto hexfinish
45 print
"Could not load file! Does it exist?"
56 print
"You control a vehicle leaving a trail behind it."
58 print
"It is always moving, and if it crosses any part"
59 print
"of the trail or border (+ characters), the game"
60 print
"is over. Use the Q and A keys to change the direction"
61 print
"to up and down, and O and P for left and right."
62 print
"See how long you can survive! Score at the end."
64 print
"NOTE: May perform at wrong speed in emulators!"
66 print
"Hit a key to begin..."
75 rem *** Draw border around screen ***
80 rem *** Start in the middle of the screen ***
88 rem *** Movement directions: 1 - 4 = up, down, left, right ***
89 rem *** We start the game moving right ***
94 rem *** S = score variable ***
106 if k
= 'q' then d = 1
107 if k
= 'a' then d = 2
108 if k
= 'o' then d = 3
109 if k
= 'p' then d = 4
111 if d
= 1 then y
= y
- 1
112 if d
= 2 then y
= y
+ 1
113 if d
= 3 then x
= x
- 1
114 if d
= 4 then x
= x
+ 1
119 if c
= '+' then goto finish
129 print
"Your score was: " ;
131 print
"Press Esc to finish"