home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 208 / 208.d81 / b.spectrum (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  5KB  |  202 lines

  1. 100 poke53280,0:poke53281,0:print"[147]"
  2. 130 :
  3. 140 poke55,0:poke56,64:clr:a$=""
  4. 142 dv=peek(186):ifdv<8thendv=8
  5. 145 gosub60000
  6. 146 tt=ti+180
  7. 155 def fnd(i)=20-(len(an$(x,i))/2)
  8. 160 sys57812"spunpacker.89",dv,0:poke780,0:poke781,0:poke782,201:sys65493
  9. 170 sys57812"package.o",dv,0:poke780,0:poke781,80:poke782,195:sys65493
  10. 180 sys57812"title.shp",dv,0:poke780,0:poke781,0:poke782,64:sys65493
  11. 185 iftt>tithen185
  12. 190 poke251,64:poke252,224:poke253,204:sys51456
  13. 195 poke252,224:poke253,204:sys51459
  14. 196 tt=ti+180
  15. 197 iftt>tithen197
  16. 200 ip=50000:unpack=51456:hgr=51459
  17. 210 ps=50006:ba=50009
  18. 220 open2,dv,2,"spectrum text,p,r"
  19. 222 j=1:k=0:fori=0to1:sysip,2,40:i=st
  20. 224 ifa$="*"thenj=j+1:k=0:goto228
  21. 226 k=k+1:an$(j,k)=a$
  22. 228 next:close2
  23. 230 readnp:dim r$(11),c(11)
  24. 240 forx=1tonp:readr$(x),c(x)
  25. 250 next
  26. 260 syshgr
  27. 270 forx=1tonp
  28. 280 gosub1810
  29. 285 fh=0:ifleft$(r$(x),2)="u."thenfh=1
  30. 290 sys57812r$(x),dv,0:poke780,0:poke781,0:poke782,64:sys65493
  31. 310 gosub1910:ifa$="q"ora$="[209]"thengosub1250
  32. 312 gosub2000
  33. 320 e(x)=peek(53281)
  34. 340 kk=0:poke198,0
  35. 355 ifz3=0then360
  36. 357 z4=z4+1:z4=z4and15
  37. 358 poke53281,z4
  38. 360 kk=kk+1:geta$:ifa$=""andkk<800then355
  39. 370 ifa$="q"ora$="[209]"thengosub1250
  40. 380 ifa$="s"ora$="[211]"then 470
  41. 390 ifa$<>chr$(133)then410
  42. 400 z1=z1+1:z1=z1and15
  43. 405 poke53280,z1:goto340
  44. 410 ifa$<>chr$(134)then416
  45. 412 z2=z2+1:z2=z2and15
  46. 415 poke53281,z2:goto340
  47. 416 ifa$<>chr$(135)then420
  48. 417 z3=1-z3:ifz3=0thenpoke53281,e(x)
  49. 419 goto340
  50. 420 syshgr:print"[147]":poke198,0:next x
  51. 430 goto270
  52. 440 :
  53. 450 rem save koala pic
  54. 460 :
  55. 470 sys hgr
  56. 480 poke53280,0:poke53281,0
  57. 490 print"[147][154]":poke214,11:print
  58. 500 print"   [211]ave this unpacked picture? (y[154]/n[154])":poke198,0
  59. 510 geta$:ifa$<>"y"anda$<>"n"then510
  60. 520 ifa$="y"then560
  61. 530 goto1110
  62. 550 :
  63. 560 print"[147][154]":poke214,9:print
  64. 570 print" [201]nsert save disk and enter a filename."
  65. 580 :
  66. 590 print"       [206]ame : ---------------[145][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][193][146]pic ";
  67. 600 ln%=10:sp$="                "
  68. 610 gosub690:ifnm$=""then1110
  69. 620 nm$=left$(chr$(129)+"pic "+nm$+sp$,15)
  70. 650 goto820
  71. 680 rem --- input routine ---
  72. 690 nm$="":x%=0:c%=peek(646)
  73. 700 print"[152][164][157]";:poke646,c%
  74. 710 geta$:ifa$=""then710
  75. 720 a%=asc(a$)
  76. 730 ifa%=20andx%thenx%=x%-1:nm$=left$(nm$,len(nm$)-1):print" [157][157]";:goto700
  77. 740 ifa%=20then710
  78. 750 ifa%=13thenprint" ":return
  79. 760 ifx%=ln%then710
  80. 770 ifa$<" "ora$>"z"anda$<"[193]"ora$>"[218]"ora%=34then710
  81. 780 nm$=nm$+a$:print""a$;:x%=x%+1:goto700
  82. 790 :
  83. 800 rem -- check for 'file exists' --
  84. 810 :
  85. 820 open15,dv,15,"r0:"+nm$+"="+nm$:input#15,er,er$:close15
  86. 830 ifer<>62thengosub1160:goto1110
  87. 840 :
  88. 850 rem ---      save pic       ---
  89. 860 :
  90. 920 gosub2000:nm$=nm$+",p,w"
  91. 930 sysps,nm$:syshgr
  92. 950 :
  93. 960 rem --- check for errors ---
  94. 970 :
  95. 980 open15,dv,15:input#15,er,er$,y$,z$:close15
  96. 990 iferthengosub1160:goto490
  97. 1000 :
  98. 1010 rem --    everything ok    ---
  99. 1020 :
  100. 1030 poke53280,0:poke53281,0
  101. 1040 print"[147][154]":poke214,7:print
  102. 1050 print"             [211]aving complete."
  103. 1060 print"   [208]ut the [204][207][193][196][211][212][193][210] disk back in"
  104. 1070 print"     the drive and press [211][208][193][195][197][154]."
  105. 1080 geta$:ifa$<>" "then1080
  106. 1090 open15,dv,15,"r0:package.o=package.o":input#15,er:close15
  107. 1100 ifer<>63 then 1040
  108. 1110 syshgr:goto420
  109. 1120 :
  110. 1130 :
  111. 1140 :
  112. 1150 rem ---   print dos error msg ---
  113. 1160 :
  114. 1170 poke53280,.:poke53281,.:print"[147]        [129] [196] [201] [211] [203]   [197] [210] [210] [207] [210] !
  115. 1180 [151]214,10:[153]
  116. 1190 a$[178]"print#valrror #"[170][196](er)[170]"print#,"[170]er$
  117. 1200 x%[178]22[171][195](a$)[173]2:[153][163]x%);a$
  118. 1210 [151]214,21:[153]
  119. 1220 [153]"print#        (NULL)ress (NULL)(NULL)atnlenvalprint# to continue."
  120. 1230 [161]a$:[139]a$[179][177]" "[167]1230
  121. 1240 [142]
  122. 1250 o[178][194](53270)[175]16
  123. 1255 [139]o[167][158]51459
  124. 1260 [151]53281,0:[151]53280,0
  125. 1270 [153]"loadcont  atnre you sure you want to quit? (ycont/ncont)"
  126. 1280 [151]198,0:[146]198,1:[161]ag$
  127. 1290 [139]ag$[178]"y"[176]ag$[178]"(NULL)"[167]1330
  128. 1295 [139]o[167][158]51459
  129. 1300 [142]
  130. 1320 [143] quit
  131. 1330 [137]40000: [159]15,8,15,"r0:hello connect=hello connect":[132]15,er:[160]15
  132. 1340 [139]er[179][177]63[167][153]"load":[128]
  133. 1350 [153]"loadstopload"[199](34)"hello connect"[199](34)",8"
  134. 1360 [153]"run"
  135. 1370 [151]631,13:[151]632,13:[151]198,2:[128]
  136. 1380 [143] data <title>,<border color>
  137. 1390 [131] 10
  138. 1400 [131] snake.shp,0
  139. 1410 [131] moth.shp,0
  140. 1420 [131] fish.shp,0
  141. 1430 [131] lizard.shp,0
  142. 1440 [131] ocelot.shp,0
  143. 1450 [131] turkey.shp,0
  144. 1460 [131] u.mushroom,0
  145. 1470 [131] bee.shp,0
  146. 1480 [131] caterpillar.shp,0
  147. 1490 [131] spider.shp,0
  148. 1500 :
  149. 1770 [153]"";
  150. 1800 :
  151. 1810 [151]53281,9:[151]53280,9
  152. 1820 [153]"loadstoportantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantan^"
  153. 1830 [129]qx[178]1[164]13
  154. 1840 [153]"(NULL)"[163]38)"(NULL)":[130]
  155. 1850 [153]"/tantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantanexp"
  156. 1860 [129]lx[178]217[164]217[170]26:[151]lx,([194](lx)[176]128):[130]
  157. 1870 [153]"stop"
  158. 1872 [153][163][165]d(1))an$(x,1):[153]"list"
  159. 1880 [129]i[178]2[164]5
  160. 1882 [153][163][165]d(i))an$(x,i)
  161. 1886 [130]:[153]""
  162. 1888 [153][163][165]d(6))an$(x,6)
  163. 1900 [142]
  164. 1910 kk[178]0
  165. 1915 [151]214,15:[153]:[153]"stop     (NULL)hile the slide is showing..."
  166. 1916 [153]"      asc1 sys- changes border color"
  167. 1917 [153]"      asc3 sys- changes background color"
  168. 1918 [153]"      asc5 sys- toggles light show"
  169. 1919 [153]"       (NULL) sys- takes you to (NULL)atn(NULL)val routine"
  170. 1920 [153]"       (NULL) sys- quits to (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL)"
  171. 1925 [151]214,23:[153]
  172. 1930 [153]"stop(NULL)ress (NULL) to quit - atnny other to continueon"
  173. 1940 kk[178]kk[170]1:[161]a$:[139]a$[179][177]""[176]kk[177]1000[167][142]
  174. 1950 [137]1940
  175. 1980 :
  176. 1990 :
  177. 2000 [153]"load";:[139]fh[167][151]254,0:[158]ba:[137]2040
  178. 2020 [151]251,64:[151]252,224:[151]253,204
  179. 2030 [158]un
  180. 2040 [151]53280,c(x):[151]252,224:[151]253,204:[158]hgr:[142]
  181. 2050 [142]
  182. 10000 d[178][194](186):n$[178]"b.spectrum":[159]15,d,15,"s0:"[170]n$:[160]15:[148]n$,d:[128]
  183. 40000 [129]i[178]0[164]21:[151]828[170]i,8[170]i:[130]
  184. 40010 [139]dv[179]8[176]dv[177]29[176]dv[178]8[167]40030
  185. 40020 a[178][194](828):b[178][194](828[170]dv[171]8):[151]828,b:[151]828[170]dv[171]8,a
  186. 40030 a$[178]"hello connect":[129]j[178]8[164]29:i[178][194](828[170]j[171]8):[139]i[178]14[167][130]
  187. 40040 [160]2:[159]2,i,2:[160]2:[139]st[167]40060
  188. 40050 [160]15:[159]15,i,15,"r0:"[170]a$[170]"="[170]a$:[132]15,er:[160]15:[139]er[178]63[167]40070
  189. 40060 [130]:[153]"load":[151]53272,23:[151]186,8:[128]
  190. 40070 q$[178][199](34):[151]646,[194](53281):[153]"load":[151]53272,23
  191. 40080 [153]"loadp(NULL)2048,0:p(NULL)44,8:p(NULL)43,1:p(NULL)56,160:p(NULL)55,0:clr:l(NULL)"q$a$q$","i
  192. 40090 [153]"run:":[151]631,13:[151]632,13:[151]198,2:[128]
  193. 60000 [153]"load":z$[178]" print#                                      ":[151]214,10:[153]
  194. 60010 [153]" listfrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefre":[129]i[178]0[164]07:[153]z$:[130]
  195. 60020 [153]" pokeposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposposprint#"
  196. 60030 z$(0)[178]"(NULL) atn (NULL) (NULL) (NULL) val ' (NULL)   (NULL) (NULL) val len (NULL) (NULL) (NULL) (NULL)":z$(1)[178]"by (NULL)alt left$arned"
  197. 60040 z$(2)[178]"(len) 2001 by (NULL)oftdisk, right$nc."[170][199](13)
  198. 60050 z$(3)[178]"
  199. 60060 z$(4)="www.loadstar.com
  200. 60090 [151]214,12:[153]
  201. 60100 [129]i[178]0[164]8:[153][163]20[171]([195](z$(i))[173]2))""z$(i):[130]:[142]
  202.