home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 227 / 227.d81 / b.64nex (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  7KB  |  241 lines

  1. 1 rem a$="64nex":savea$,8:verifya$,8
  2. 2 poke788,52:rembypass clock-stop check
  3. 10 xm=319:xc=xm/2:op=0:o=op:sa=24576
  4. 20 ym=199:yc=ym/2:c=0:pt=1:ea=sa+7999:dn=peek(186):cp=0
  5. 22 ed$=".....end of line."
  6. 24 ed$=ed$+""
  7. 30 gosub6000:gosub9000
  8. 100 rem *** main ***
  9. 110 gosub8000
  10. 120 rem *** mainloop ***
  11. 130 e$="":print"";:gete$:ife$=""then130
  12. 140 gosub7000
  13. 150 goto120
  14. 200 rem *** reverse screen ***
  15. 250 fori=satoea
  16. 255 e$="":gete$:ife$="^"then299
  17. 260 pokei,255-peek(i)
  18. 280 nexti
  19. 290 getc$:ifc$=""then290
  20. 299 return
  21. 999 end
  22. 1000 rem *** nextnex ***
  23. 1100 for n=1 to 100
  24. 1110 for v=-n to n
  25. 1120 c=c+.05
  26. 1126 if v=0 then 1180
  27. 1130 x=int(xc+v*sin(n/(c/n)*(NULL)))
  28. 1140 y=int(yc-v*cos(n/(c/v)*(NULL)))
  29. 1150 if x>xm or x<0 or y>ym or y<0 then 1180
  30. 1160 rem pt=pt+1:if pt>1 then pt=0
  31. 1170 gosub4000
  32. 1172 e$="":gete$:ife$="^"then1199
  33. 1180 next v
  34. 1190 next n
  35. 1192 c$="":getc$:ifc$=""then1192
  36. 1199 return
  37. 2000 rem *** priornex ***
  38. 2100 for n=1 to 99
  39. 2110 for v=-n to n
  40. 2120 c=c+.05
  41. 2126 if v=0 then 2180
  42. 2130 x=int(xc+v*sin(n/(c/v)*(NULL)))
  43. 2140 y=int(yc-v*cos(n/(c/v)*(NULL)))
  44. 2150 if x>xm or x<0 or y>ym or y<0 then 2180
  45. 2160 rem pt=pt+1:if pt>1 then pt=0
  46. 2170 gosub4000
  47. 2172 e$="":gete$:ife$="^"then2199
  48. 2180 next v
  49. 2190 next n
  50. 2192 c$="":getc$:ifc$=""then2192
  51. 2199 return
  52. 3000 rem *** yan ***
  53. 3100 for n=1 to 100
  54. 3110 for v=-n to n
  55. 3120 c=c+.05
  56. 3126 if v=0 then 3180
  57. 3130 x=int(xc+v*sin(n/(c/n)*(NULL)))
  58. 3140 y=int(yc-v*cos(n/(c/n)*(NULL)))
  59. 3150 if x>xm or x<0 or y>ym or y<0 then 3180
  60. 3160 rem pt=pt+1:if pt>1 then pt=0
  61. 3170 gosub4000
  62. 3172 e$="":gete$:ife$="^"then3199
  63. 3180 next v
  64. 3190 next n
  65. 3192 c$="":getc$:ifc$=""then3192
  66. 3199 return
  67. 4000 rem *** plot ***
  68. 4010 ifx>xmorx<0ory>ymory<0then4999
  69. 4020 ch=int(x/8):ro=int(y/8):ln=yand7
  70. 4030 by=sa+ro*320+8*ch+ln:bi=7-(xand7)
  71. 4040 ifpt=1thenpokeby,peek(by)or(2^bi)
  72. 4050 ifpt=0andpeek(by)=(peek(by)or(2^bi))thenpokeby,peek(by)-(2^bi)
  73. 4999 return
  74. 5000 rem *** setup hires ***
  75. 5010 poke53265,peek(53265)or32
  76. 5012 poke56576,150
  77. 5014 poke648,92
  78. 5016 poke53272,121
  79. 5020 ifcp=0thenfori=23552to24551:pokei,1:nexti:cp=1
  80. 5030 if op=0thenfori=satoea:pokei,0:nexti
  81. 5040 return
  82. 6000 rem *** text mode ***
  83. 6010 poke53265,peek(53265)and223
  84. 6012 poke56576,151
  85. 6013 poke648,4
  86. 6014 poke53272,21
  87. 6020 poke53281,0:poke53280,11:poke646,1
  88. 6030 return
  89. 7000 rem *** check key press ***
  90. 7010 ife$="1"thengosub5000:gosub1000
  91. 7020 ife$="2"thengosub5000:gosub2000
  92. 7030 ife$="3"thengosub5000:gosub3000
  93. 7040 ife$="4"thenop=1:gosub5000:op=o:gosub200
  94. 7050 ife$="5"thenop=op+1:o=op:ifop>1thenop=0:o=op
  95. 7060 ife$="6"thenop=0:gosub5000:op=o
  96. 7070 ife$="7"thenc=0
  97. 7080 ife$="8"thenprint"enter c value ";:f=1:gosub20000:c=val(f$):f=0
  98. 7090 ife$="9"thenc=rnd(0)*319
  99. 7100 ife$="0"thenop=1:gosub5000:e$="":op=o:goto7120
  100. 7104 ife$="/"thengosub30000
  101. 7106 ife$="q"thenprinted$:poke788,49:goto40000
  102. 7108 ife$="s"thengosub10000
  103. 7110 gosub6000:gosub8000
  104. 7120 return
  105. 8000 rem *** menu ***
  106. 8008 poke53281,0:poke53280,11:poke646,1
  107. 8010 print"[147][144][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  108. 8012 print"[155] next[206]ex, prior[206]ex, [146]"
  109. 8013 print"[152][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  110. 8018 print"[164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  111. 8020 print"[155] & yan ([217]et [193]nother [206]exus) [146]"
  112. 8022 print"[152][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  113. 8030 print"[164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  114. 8032 print"[155] by [194]rian [195]rosthwaite [146]"
  115. 8034 print"[152][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  116. 8040 print"[164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  117. 8042 print"[155]press....                           "
  118. 8050 print"  1 for the next[206]ex       / drive # "
  119. 8060 print"  2 for the prior[206]ex                "
  120. 8062 print"[146] [196][206] ="dn"[157] "
  121. 8070 print"  3 for yan                         "
  122. 8080 print"  4 to reverse the plot screen      "
  123. 8090 print"  5 to toggle over plot  [146] [207][208] ="op"   "
  124. 8100 print"  6 to clear plot screen            "
  125. 8110 print"  7 to reset [195]                      "
  126. 8120 print"  8 to set [195]                        "
  127. 8122 print"[146] [195] ="c"[157] "
  128. 8130 print"  9 for [210][206][196]([195])            [211] to save "
  129. 8140 print"  0 to view     ^ menu    [209] to quit "
  130. 8142 print"[152][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  131. 8150 return
  132. 9000 rem *** opening screens ***
  133. 9010 print"[147][159][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  134. 9020 print"[154] [202] & [198] [208]ublishing [146]"
  135. 9030 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  136. 9040 print"[159][164][164][164]"
  137. 9050 print"[154] & [146]"
  138. 9060 print"[163][163][163]"
  139. 9070 print"[159][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  140. 9080 print"[154] noesiscreation.org [146]"
  141. 9090 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  142. 9100 print"[159][164][164][164][164][164][164][164][164][164]"
  143. 9110 print"[154] present [146]"
  144. 9120 print"[163][163][163][163][163][163][163][163][163]"
  145. 9130 print"[159][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  146. 9140 print"[154] next[206]ex, prior[206]ex, [146]"
  147. 9150 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  148. 9160 print"[159][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  149. 9170 print"[154] & yan ([217]et [193]nother [206]exus) [146]"
  150. 9180 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  151. 9190 print"[159][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  152. 9200 print"[154] by [194]rian [195]rosthwaite [146]"
  153. 9210 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  154. 9212 poke53370,0
  155. 9214 fortd=0to4000
  156. 9215 c$="":getc$:ifc$<>""then9218
  157. 9216 nexttd
  158. 9218 poke53371,0
  159. 9220 print"[158][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  160. 9230 print"[153] [195]opyright 2003, 2004 [146]"
  161. 9240 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  162. 9250 print"[158][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  163. 9260 print"[153] by [194]rian [195]rosthwaite [146]"
  164. 9270 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  165. 9272 print"[158][164][164][164]"
  166. 9274 print"[153] & [146]"
  167. 9276 print"[163][163][163]"
  168. 9280 print"[