home *** CD-ROM | disk | FTP | other *** search
/ Compute! Gazette 1995 February / 1995-02a.d64 / menu.feature (.txt) < prev    next >
Commodore BASIC  |  2022-09-20  |  3KB  |  85 lines

  1. 10 ifa=0thena=1:load"text reader",8,1
  2. 30 rem poke56,56:poke55,0:clr
  3. 40 f=49153:fl=49170:fori=820to1023:pokei,0:next
  4. 50 n=3:n=n-1:dimt$(n),a$(n),p$(n),as(n),ps(n)
  5. 60 fori=0ton:readt$(i),a$(i),p$(i),as(i),ps(i):next
  6. 70 sp$="                                      "
  7. 80 a$="gazette's february features":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. 150 print"[147]":poke53280,15:poke53281,15:poke53265,peek(53265)or64
  14. 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]";
  15. 170 print""z$;
  16. 180 print"[160][160][168][195][169][160][177][185][185][181][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]";
  17. 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]"
  18. 200 print"[146][144]----------------------------------------";
  19. 210 s=cp*8:e=cp*8+7:ife>nthene=n
  20. 220 fori=stoe:print"[160]";chr$(177+i-cp*8);"[160][151]";t$(i);
  21. 230 printleft$(sp$,36-len(t$(i)));
  22. 240 print"[146][144]----------------------------------------";:next
  23. 250 print"this is page #";cp+1;"of";np+1
  24. 260 rem  print"press [210][197][212][213][210][206][146] for next page[145][145]"
  25. 265 gosub 900
  26. 266 :
  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][208][210][197][211][211][160][216][160][212][207][160][197][216][201][212][160][212][207][160][205][193][201][206][160][205][197][206][213][160][160][160][160][160][160]";
  30. 300 geta$:ifa$<>chr$(13)and(a$<"1"ora$>"8"anda$<>"x")then300
  31. 310 ifa$="x"then 950
  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. 366 if p$(c)="xx" goto 580
  39. 370 print"[147]":poke53265,27:ifcp=1 and c=11 then 580
  40. 380 b=0:print""tab(11)"article[146] or program"
  41. 390 printtab(8)"[145][145][145][145][145]press any key to switch,"
  42. 400 printtab(10)"or return[146] to select."
  43. 410 geta$:ifa$=""then410
  44. 420 ifa$=chr$(13)then460
  45. 430 ifb=0thenar$="article or program[146]":b=1:goto450
  46. 440 ar$="article[146] or program":b=0
  47. 450 print""tab(11)ar$:goto410
  48. 460 ifb=0then580
  49. 470 goto550:rem  ifc<>3then550
  50. 480 b=0:c=1
  51. 490 cx=21-len(q$(c))/2:b$=left$(sp$,cx)+q$(c)
  52. 500 print""b$
  53. 510 geta$:ifa$=""then510
  54. 520 ifa$=chr$(13)thenp$(c)=r$(c):goto550
  55. 530 ifb=0thenc=c+1:b=1:goto490
  56. 540 c=c-1:b=0:goto490
  57. 550 print"[147][146][155]load[146]";chr$(34);p$(c);chr$(34);",8":print"run"
  58. 560 d$=p$(c):pp=ps(c):gosub850
  59. 570 poke631,13:poke632,13:poke631,13:poke198,2:end
  60. 580 fori=1tolen(a$(c)):pokei+f,asc(mid$(a$(c),i,1)):next
  61. 590 pokefl,len(a$(c))+2:d$=t$(c)
  62. 600 print"[147]":d$=a$(c):pp=as(c):gosub850:sys49171:goto150
  63. 650 print"      [208][210][197][211][211] [193][206][217] [203][197][217] [198][207][210] [212][200][197] [205][197][206][213]"
  64. 670 getmt$:ifmt$=""then670
  65. 680 return
  66. 700 data hints from a heavy user,heavy user.ft,xx,1,1
  67. 705 data steel trap, steeltrap.ft,xx,1,1
  68. 710 data review - geocanvas, geocanvas.rv,xx,1,1
  69. 850 poke53265,27:print"[146]";
  70. 851 ff$="make sure you have side"+str$(pp)+" ready"
  71. 852 printtab((40-len(ff$))/2)ff$
  72. 853 ff$="and press any key"
  73. 854 printtab((40-len(ff$))/2)ff$
  74. 855 get x$:if x$="" then 855
  75. 860 ff$="loading "+chr$(34)+d$+chr$(34)
  76. 870 printtab((40-len(ff$))/2)ff$
  77. 880 print"            please stand by[155]"
  78. 886 rem if left$(t$(c),3)="sup"then poke53281,6:poke53280,6
  79. 887 return
  80. 900 tt=176+8
  81. 910 if (cp+1)*8 > (n+1) then tt=176+n+1-cp*8
  82. 920 return
  83. 950 print"[147]":poke53265,27:sys65409:poke56,160:poke55,0:clr
  84. 960 load"mn",8
  85.