home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 151
/
151.d81
/
b.program
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
1KB
|
67 lines
10 poke55,0:poke56,56:clr
20 dv=peek(186):ifdv<8thendv=8
30 poke53280,0:poke53281,0:print"[147]"
40 sys57812"font",dv,0:poke780,0:poke781,0:poke782,56:sys65493
50 poke53272,31
52 sp$=" "
53 h$="[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
60 fori=1to5:readmn$(i):next
70 data" [207]ption [207]ne "
72 data" [207]ption [212]wo "
74 data" [207]ption [212]hree "
76 data" [207]ption [198]our "
78 data" [209]uit "
80 poke214,5:print"[154]":tb=11:my=1
90 fori=1to5:printtab(tb)mn$(i):next
100 poke214,4+my:print"[154]"
110 printtab(tb)""mn$(my)"[145]"
120 geta$:ifa$=""then120
130 printtab(tb)mn$(my)
140 ifa$=chr$(13)then180
150 ifa$="[145]"thenmy=my-1:ifmy<1thenmy=5
160 ifa$=""thenmy=my+1:ifmy>5thenmy=1
170 goto100
180 print"[147]"
190 onmygoto200,300,400,500,600
197 :
198 :rem option 1
199 :
200 c=2:x=1:y=1:xx=19:yy=3:gosub800
210 gosub900:goto80
297 :
298 :rem option 2
299 :
300 c=3:x=11:y=2:xx=19:yy=3:gosub800
310 gosub900:goto80
397 :
398 :rem option 3
399 :
400 c=4:x=5:y=11:xx=19:yy=3:gosub800
410 gosub900:goto80
497 :
498 :rem option 4
499 :
500 c=5:x=17:y=18:xx=19:yy=3:gosub800
510 gosub900:goto80
597 :
598 :rem quit
599 :
600 c=2:x=8:y=9:xx=19:yy=3:gosub800
610 gosub900:goto80
797 :
798 :rem box subroutine
799 :
800 poke646,c
810 poke214,y:print
820 printtab(x)"[176]"left$(h$,xx)"[174]"
830 fori=1toyy:printtab(x)"[221]"left$(sp$,xx)"[221]":next
840 printtab(x)"[173]"left$(h$,xx)"[189]"
850 return
897 :
898 :rem get subroutine
899 :
900 poke214,y+2:print:printtab(x+2)mn$(my)
910 geta$:ifa$=""then910
920 print"[147]":return
10000 d=peek(186):n$="b.program":open15,d,15,"s0:"+n$:close15:saven$,d:end