home *** CD-ROM | disk | FTP | other *** search
/ Compute! Gazette 1984 July / 1984-07.d64 / mn (.txt) < prev    next >
Commodore BASIC  |  2022-09-20  |  1KB  |  46 lines

  1. 100 poke53280,14:poke53281,14
  2. 110 poke53282,8:poke53283,15:poke53284,2
  3. 120 print"[147]one moment please...":gosub500
  4. 140 sp$="                                      "
  5. 150 a$="table of contents for "+mo$+" 1984":cx=20-len(a$)/2
  6. 151 z$="":a$=left$(sp$,cx)+a$+sp$:fori=1to40
  7. 152 z$=z$+chr$(asc(mid$(a$,i))+128):next
  8. 172 np=int(it/8):cp=0
  9. 175 poke53265,peek(53265)or64
  10. 176 poke53280,14:poke53281,14
  11. 177 print"[147][142]----------------------------------------";
  12. 180 print"[158][160][160][160][195][207][205][208][213][212][197][167][211][160][199][193][218][197][212][212][197][160][198][207][210][160][214][201][195][173][178][176][160][193][206][196][160][182][180][160][160]";z$;
  13. 200 print"[146]----------------------------------------";
  14. 245 print"press            to see:"
  15. 250 s=cp*8:e=cp*8+7:ife>itthene=it
  16. 260 fori=stoe:print"[160][198]";chr$(177+i-cp*8);"[160][151]";n$(i);
  17. 270 printleft$(sp$,35-len(n$(i)));
  18. 280 print"[146][156]----------------------------------------";
  19. 300 next
  20. 310 print:print"this is page #";cp+1;"of";np+1
  21. 320 print"press [158][210][197][212][213][210][206][146] for next page"
  22. 340 geta$:ifa$<>chr$(13)and(a$<"[133]"ora$>"[140]")then340
  23. 350 ifa$=chr$(13)thencp=cp+1:ifcp>npthencp=0
  24. 355 ifa$=chr$(13)then175
  25. 360 fv=(asc(a$)-133)*2+1:fv=fv+7*(fv>8)
  26. 365 c=fv+cp*8-1:ifc>itthen340
  27. 470 sys65409:print"[147][142]load";chr$(34);f$(c);chr$(34);",8":i$="run"
  28. 480 fori=1tolen(i$):poke631+i,asc(mid$(i$,i)):next
  29. 490 poke631+i,13:poke631,13:poke198,i+1:end
  30. 499 end
  31. 500 open15,8,15,"i0"
  32. 510 open1,8,8,"0:64 contents,s,r":input#15,en,em$:if en>0 then 600
  33. 520 input#1,mo$:input#1,it:dimn$(it),f$(it)
  34. 530 fori=0toit:input#1,n$(i):input#1,f$(i):next
  35. 540 close1:close15:return
  36. 600 close1:close15
  37. 610 print"[147][195]an't read [212]able of [195]ontents"
  38. 615 print"[196]isk [197]rror:";en;em$
  39. 620 print"[195]heck:"
  40. 630 print"1) [195]orrect disk inserted?
  41. 640 [153]"2) right$s drive door closed?
  42. 650 print"3) [193]ll cables attached?"
  43. 660 print"[210]emove, then re-insert disk, press any  key to try again."
  44. 670 geta$:ifa$=""then670
  45. 680 run
  46.