forked from OS2World/APP-EMULATOR-zmakebas
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathzx81-basic-demo-old.bas
48 lines (37 loc) · 1.17 KB
/
zx81-basic-demo-old.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# (for Emacs) -*- indented-text -*-
# this file `demo.bas' demonstrates the features of zmakebas
# (basically just the escape sequences), and gives you an example of
# what the input can look like if you use all the bells and whistles. :-)
#
# See `demolbl.bas' for a label-using version.
10 rem zmakebas demo
# tabs (as below) are fine (they're removed)
20 let HEADER= 2000
25 let BLOCKDEM=4000
40 gosub HEADER
60 gosub BLOCKDEM
70 stop
# init
# [ deleted ]
# header
2000 print "\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..";\
"\..\..\..\..\..\..\..\..\..\..\..\..\..\..\.."
2010 print " NON-ASCII CHARS IN ZMAKEBAS "
2020 print "\''\''\''\''\''\''\''\''\''\''\''\''\''\''\''\''";\
"\''\''\''\''\''\''\''\''\''\''\''\''\''\''\''"
2030 print
2040 return
# blockdem
# 01234567890123456789012345678901
4000 print at 11,0;"THE BLOCK GRAPHICS, FIRST AS ";\
"LISTED BY A FOR..NEXT LOOP, THEN ";\
"VIA ZMAKEBAS\"S ESCAPE SEQUENCES:"
4020 print at 15,0;
4030 for F=128 to 143
4031 print chr$(F);" ";
4032 next F
4034 print
4035 print
4040 print at 17,0;"\ \ ' \' \'' \ . \ : \'. \': ";\
"\. \.' \: \:' \.. \.: \:. \::"
4130 return