home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 233 / 233.d81 / 643in1 (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  8KB  |  292 lines

  1. 1 rem a$="643in1":open15,8,15,"s0:"+a$:     close15: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=-100:pt=1:ea=sa+7999:dn=peek(186):cp=0:sn=1:fp=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 *** 64 3in1 3.14 nexus ***
  23. 1001 poke53280,5
  24. 1100 for v= 1 to yc
  25. 1110 for n=-v to v
  26. 1120 c=c+.05
  27. 1124 if fp=0 then pt=1
  28. 1126 if fp=1 then pt=pt+1:if pt>1 then pt=0
  29. 1128 if  b=1 then e=e+1:if int(e/2)*2=e then v=-v
  30. 1130 x=int(xc+c*sin(n/(v/180)*3.14))
  31. 1140 y=int(yc-c*cos(n/(v/180)*3.14))
  32. 1150 if x>xm or x<0 or y>ym or y<0 then 1180
  33. 1170 gosub4000
  34. 1172 e$="":gete$:ife$="^"then1199
  35. 1180 v=abs(v)
  36. 1190 next n:next v
  37. 1191 poke53280,2
  38. 1192 c$="":getc$:ifc$=""then1192
  39. 1199 e=0:return
  40. 2000 rem *** 64 3in1 three nexus ***
  41. 2001 poke53280,5
  42. 2100 for v= 1 to yc
  43. 2110 for n=-v to v
  44. 2120 c=c+.05
  45. 2124 if fp=0 then pt=1
  46. 2126 if fp=1 then pt=pt+1:if pt>1 then pt=0
  47. 2128 if  b=1 then e=e+1:if int(e/2)*2=e then v=-v
  48. 2130 x=int(xc+c*sin(n/(v/180)*3))
  49. 2140 y=int(yc-c*cos(n/(v/180)*3))
  50. 2150 if x>xm or x<0 or y>ym or y<0 then 1180
  51. 2160 iffp=1thenpt=pt+1:ifpt>1thenpt=0
  52. 2162 iffp=0thenpt=1
  53. 2170 gosub4000
  54. 2172 e$="":gete$:ife$="^"then2199
  55. 2180 v=abs(v)
  56. 2190 next n:next v
  57. 2191 poke53280,2
  58. 2192 c$="":getc$:ifc$=""then2192
  59. 2199 e=0:return
  60. 3000 rem *** 64 3in1 rose nexus ***
  61. 3001 poke53280,5
  62. 3100 for v= 1 to yc
  63. 3110 for n=-v to v
  64. 3120 c=c+.05
  65. 3124 if fp=0 then pt=1
  66. 3126 if fp=1 then pt=pt+1:if pt>1 then pt=0
  67. 3128 if  b=1 then e=e+1:if int(e/2)*2=e then v=-v
  68. 3130 x=int(xc+c*sin(n/(v/180)*(NULL)))
  69. 3140 y=int(yc-c*cos(n/(v/180)*(NULL)))
  70. 3150 if x>xm or x<0 or y>ym or y<0 then 1180
  71. 3160 iffp=1thenpt=pt+1:ifpt>1thenpt=0
  72. 3162 iffp=0thenpt=1
  73. 3170 gosub4000
  74. 3172 e$="":gete$:ife$="^"then3199
  75. 3180 v=abs(v)
  76. 3190 next n:next v
  77. 3191 poke53280,2
  78. 3192 c$="":getc$:ifc$=""then3192
  79. 3199 e=0:return
  80. 4000 rem *** plot ***
  81. 4010 ifx>xmorx<0ory>ymory<0then4999
  82. 4020 ch=int(x/8):ro=int(y/8):ln=yand7
  83. 4030 by=sa+ro*320+8*ch+ln:bi=7-(xand7)
  84. 4040 ifpt=1thenpokeby,peek(by)or(2^bi)
  85. 4050 ifpt=0andpeek(by)=(peek(by)or(2^bi))thenpokeby,peek(by)-(2^bi)
  86. 4999 return
  87. 5000 rem *** setup hires ***
  88. 5010 poke53265,peek(53265)or32
  89. 5012 poke56576,150
  90. 5014 poke648,92
  91. 5016 poke53272,121
  92. 5020 ifcp=0thenfori=23552to24551:pokei,1:nexti:cp=1
  93. 5030 if op=0thenfori=satoea:pokei,0:nexti
  94. 5040 return
  95. 6000 rem *** text mode ***
  96. 6010 poke53265,peek(53265)and223
  97. 6012 poke56576,151
  98. 6013 poke648,4
  99. 6014 poke53272,21
  100. 6020 poke53281,0:poke53280,11:poke646,1
  101. 6030 return
  102. 7000 rem *** read keys *****
  103. 7010 ife$="1"thengosub5000:gosub1000
  104. 7020 ife$="2"thengosub5000:gosub3000
  105. 7030 ife$="3"thengosub5000:gosub2000
  106. 7040 ife$="4"thenop=1:gosub5000:op=o:gosub200
  107. 7050 ife$="5"thenop=op+1:o=op:ifop>1thenop=0:o=op
  108. 7060 ife$="6"thenop=0:gosub5000:op=o
  109. 7070 ife$="7"thenfp=fp+1:iffp>1thenfp=0
  110. 7080 ife$="8"thenprint"enter c value ";:f=1:gosub20000:c=val(f$):f=0
  111. 7090 ife$="9"thenb=b+1:ifb>1thenb=0
  112. 7091 remife$="9"thenprint"set step value ";:f=1:gosub20000:sn=abs(val(f$)):f=0
  113. 7092 ifsn>319thensn=1
  114. 7100 ife$="0"thenop=1:gosub5000:e$="":op=o:goto7120
  115. 7104 ife$="/"thengosub30000
  116. 7106 ife$="q"thenprinted$:poke788,49:goto40000
  117. 7108 ife$="s"thengosub10000
  118. 7109 ife$="?"thengosub50000
  119. 7110 gosub6000:gosub8000
  120. 7120 return
  121. 8000 rem *** menu ***
  122. 8008 poke53281,0:poke53280,11:poke646,1
  123. 8010 print"[147][144][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]"
  124. 8012 print"[155] 3 in 1 [206]exus, [204]otus [206]exus, [146]"
  125. 8013 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]"
  126. 8018 print"[164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  127. 8020 print"[155] and [202][198][212][200][207][201] [206]exus [146]"
  128. 8022 print"[152][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  129. 8030 print"[164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  130. 8032 print"[155] by [194]rian [195]rosthwaite [146]"
  131. 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]"
  132. 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]"
  133. 8042 print"[155]press....                 ? to what "
  134. 8050 print"  1 3 in 1 [206]exus 3.14     / drive # "
  135. 8060 print"  2 [204]otus [206]exus [208][201]                  "
  136. 8062 print"[146] [196][206] ="dn"[157] "
  137. 8070 print"  3 [202][198][212][200][207][201] (3)                      "
  138. 8080 print"  4 reverse plot screen             "
  139. 8090 print"  5 toggle over plot      [146] [207][208] ="op"  "
  140. 8100 print"  6 clear plot screen               "
  141. 8110 print"  7 false/true plot                 "
  142. 8112 print"[146] [198][208] ="fp"[157] "
  143. 8120 print"  8 set c                           "
  144. 8122 print"[146] [195] ="c"[157] "
  145. 8130 print"  9 mirror                [211] to save "
  146. 8132 print"[146] [205] ="b"[157] "
  147. 8140 print"  0 view        ^ menu    [209] to quit "
  148. 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]"
  149. 8150 return
  150. 8888 ____zzzzzpz]zz::a+++++++++++++aaa+qqqqqqqqqq/:::::print
  151. 9000 rem *** opening screens ***
  152. 9010 print"[147][159][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  153. 9020 print"[154] [202] & [198] [208]ublishing [146]"
  154. 9030 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  155. 9040 print"[159][164][164][164]"
  156. 9050 print"[154] & [146]"
  157. 9060 print"[163][163][163]"
  158. 9070 print"[159][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  159. 9080 print"[154] noesiscreation.org [146]"
  160. 9090 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  161. 9100 print"[159][164][164][164][164][164][164][164][164][164]"
  162. 9110 print"[154] present [146]"
  163. 9120 print"[163][163][163][163][163][163][163][163][163]"
  164. 9130 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][164]"
  165. 9140 print"[154] 3 in 1 [206]exus, [204]otus [206]exus, [146]"
  166. 9150 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][163]"
  167. 9160 print"[159][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
  168. 9170 print"[154] and [202][198][212][200][207][201] (3)  [146]"
  169. 9180 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  170. 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]"
  171. 9200 print"[154] by [194]rian [195]rosthwaite [146]"
  172. 9210 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
  173. 9212 poke53370,0
  174. 92