home *** CD-ROM | disk | FTP | other *** search
/ Compute! Gazette 1991 January / 1991-01.d64 / mn (.txt) < prev    next >
Commodore BASIC  |  2022-09-20  |  3KB  |  91 lines

  1. 10 ifa=0thena=1:load"textreader64",8,1
  2. 30 poke56,56:poke55,0:clr
  3. 40 f=49153:fl=49170:fori=820to1023:pokei,0:next
  4. 50 n=7:dimt$(n),a$(n),p$(n)
  5. 60 fori=0ton:readt$(i),a$(i),p$(i):next
  6. 70 sp$="                                      "
  7. 80 a$="compute's january gazette disk":cx=20-len(a$)/2
  8. 90 z$="":a$=left$(sp$,cx)+a$+sp$:fori=1to40
  9. 100 z$=z$+chr$(asc(mid$(a$,i))+128):next
  10. 110 np=int(n/8):cp=0:tt=183
  11. 120 poke53280,15:poke53281,15
  12. 130 poke53282,8:poke53283,1:poke53284,6
  13. 140 gosub610
  14. 150 print"[147]":poke53280,15:poke53281,15:poke53265,peek(53265)or64
  15. 160 printchr$(142)"[147][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160]";
  16. 170 print""z$;
  17. 180 print"[160][160][168][195][169][160][177][185][185][177][160][195][207][205][208][213][212][197][160][208][213][194][204][174][160][201][206][212][167][204][172][160][204][212][196][174][160][160]";
  18. 190 print"[160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][145]"
  19. 200 print"[146][144]----------------------------------------";
  20. 210 s=cp*8:e=cp*8+7:ife>nthene=n
  21. 220 fori=stoe:print"[160]";chr$(177+i-cp*8);"[160][151]";t$(i);
  22. 230 printleft$(sp$,36-len(t$(i)));
  23. 240 print"[146][144]----------------------------------------";:next
  24. 250 print"this is page #";cp+1;"of";np+1
  25. 265 if cp=1 then tt=178
  26. 266 if cp=0 then tt=184
  27. 270 print"[145][145][160][208][210][197][211][211][160][177][173]"chr$(tt);
  28. 280 print"[160][212][207][160][204][207][193][196][160][193][160][208][210][207][199][210][193][205][160][207][210][160][193][210][212][201][195][204][197][160]";
  29. 290 print"[160][160][160][160][160][160][160][160][208][210][197][211][211][160][216][160][212][207][160][197][216][201][212][160][212][207][160][194][193][211][201][195][160][160][160][160][160][160][160][160]";
  30. 300 geta$:ifa$<>chr$(13)and(a$<"1"ora$>"8"anda$<>"x")then300
  31. 310 ifa$="x"thenprint"[147]":poke53265,27:sys65409:poke56,160:poke55,0:clr:end
  32. 320 ifa$=chr$(13)thencp=cp+1:ifcp>npthencp=0
  33. 330 ifa$=chr$(13)then150
  34. 340 fv=(asc(a$)-48):fv=fv+7*(fv>8)
  35. 350 c=fv+cp*8-1
  36. 360 ifc>nthen300
  37. 365 if a$(c)="xx" goto 550
  38. 370 print"[147]":poke53265,27:ifcp=1 and c=11 then 580
  39. 380 b=0:print""tab(11)"article[146] or program"
  40. 390 printtab(8)"[145][145][145][145][145]press any key to switch,"
  41. 400 printtab(10)"or return[146] to select."
  42. 410 geta$:ifa$=""then410
  43. 420 ifa$=chr$(13)then460
  44. 430 ifb=0thenar$="article or program[146]":b=1:goto450
  45. 440 ar$="article[146] or program":b=0
  46. 450 print""tab(11)ar$:goto410
  47. 460 ifb=0then580
  48. 470 ifc<>3then550
  49. 480 b=0:c=1
  50. 490 cx=21-len(q$(c))/2:b$=left$(sp$,cx)+q$(c)
  51. 500 print""b$
  52. 510 geta$:ifa$=""then510
  53. 520 ifa$=chr$(13)thenp$(c)=r$(c):goto550
  54. 530 ifb=0thenc=c+1:b=1:goto490
  55. 540 c=c-1:b=0:goto490
  56. 550 print"[147][146][155]load[146]";chr$(34);p$(c);chr$(34);",8":print"run"
  57. 560 d$=p$(c):gosub850
  58. 570 poke631,13:poke632,13:poke631,13:poke198,2:end
  59. 580 fori=1tolen(a$(c)):pokei+f,asc(mid$(a$(c),i,1)):next
  60. 590 pokefl,len(a$(c))+2:d$=t$(c)
  61. 600 print"[147]":d$=a$(c):gosub850:sys49171:goto150
  62. 610 printchr$(14)"[147] [194]efore attempting to run any programs"
  63. 611 print" please refer to the instructions in"
  64. 612 print" [195][207][205][208][213][212][197]'s [199]azette [205]agazine issue"
  65. 613 print" dated the same month as this disk."
  66. 614 print" [208]lease note that this disk contains"
  67. 615 print" [194][207][206][213][211] programs which are not published"
  68. 616 print" in the [199]azette. [198]or your convenience,"
  69. 617 print" documentation has been included on the"
  70. 618 print" disk, along with a text reader. [215]hen a"
  71. 619 print" [194][207][206][213][211] program is selected from the"
  72. 620 print" menu, you are given the option of"
  73. 621 print" reading the article or running the"
  74. 622 print" program. [213]se the cursor keys to make"
  75. 623 print" your selection, then hit [210][197][212][213][210][206]."
  76. 626 print"      [208][210][197][211][211] [193][206][217] [203][197][217] [198][207][210] [212][200][197] [205][197][206][213]"
  77. 670 getmt$:ifmt$=""then670
  78. 680 return
  79. 700 data lander,xx,lander.boot
  80. 710 data dissolver,xx,dissolver.demo
  81. 730 data module 64,xx,module64
  82. 750 data list formatter,xx,list formatter
  83. 760 data gazette gallery,gallery.a,gallery64
  84. 780 data *bonus* bam aid,bamaid.a,bamaid.not.64
  85. 792 data 64 mlx,xx,64 mlx
  86. 800 data automatic proofreader,xx,proofreader
  87. 850 poke53265,27:print"[146]";
  88. 860 ff$="loading "+chr$(34)+d$+chr$(34)
  89. 870 printtab((40-len(ff$))/2)ff$
  90. 880 print"            please stand by[155]":return
  91.