home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 66 / 066.d81 / setup (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  9KB  |  329 lines

  1. 10 ifa=0thenz=peek(186)
  2. 20 ifa=0thena=1:gosub3130:load"0:cfg.default",z,1
  3. 30 ifa=1thena=2:load"0:fnt.minitel1b",z,1
  4. 40 ifa=2thena=3:load"0:exe.savemto",z,1
  5. 50 iff$<>""then2960
  6. 60 poke51,0:poke52,128:poke55,0:poke56,128
  7. 70 cp=128:rem cp=modem carrier polarity 128=normal; 0=inverted
  8. 80 pa=224:rem pa=character parity odd=32; even=96; mark=144; space=224
  9. 90 dp=64:rem dp=dtr/rts polarity 64=normal; 0=inverted
  10. 100 dim pn$(191)
  11. 110 bl$="                                     "
  12. 120 poke204,1:print"[147]           [199][197][212][212][201][206][199][160][211][212][193][210][212][197][196]..."
  13. 130 print"[208]repare to experience the power of"
  14. 140 print"[205]initel.  [201]n seconds you can:"
  15. 150 print".meet people and communicate worldwide"
  16. 160 print".review local and international news"
  17. 170 print"and events"
  18. 180 print".buy products and services from"
  19. 190 print"around the globe"
  20. 200 print"[199][197][212][212][201][206][199][160][211][212][193][210][212][197][196][160]installs software on"
  21. 210 print"your [195]ommodore 64 or 128 which allows it";
  22. 220 print"to imitate a [205]initel terminal.  [193]nswer"
  23. 230 print"each question or simply press [[210][197][212][213][210][206]]"
  24. 240 print"to select the automatic answer supplied"
  25. 250 print"for most questions."
  26. 260 print"[193]t any time, you may rerun this [211][197][212][213][208]"
  27. 270 print"program to change your [205]initel user [201][196],"
  28. 280 print"password, or telephone number."
  29. 290 print"[[210][197][212][213][210][206]] to [195]ontinue, [[211][212][207][208]] to [209]uit[146]";
  30. 300 poke198,0
  31. 310 getb$:ifb$<>chr$(13)then310
  32. 320 poke204,1:print"[147][215]hat kind of modem do you have?"
  33. 330 print"a. [214]icmodem ([205]odel 1600) or [204]ike"
  34. 340 print"b. [193]utomodem ([205]odel 1650) or [204]ike"
  35. 350 print"c. [205]odem 300 ([205]odel 1660) or [204]ike"
  36. 360 print"d. [205]odem 1200 ([205]odel 1670) or [204]ike"
  37. 370 print"e. [205]itey [205]o/[200][197][211] 2[193]"
  38. 380 print"f. [214]olks 6470/6480 or [204]ike"
  39. 390 print"g. [200]ayes 300 or [204]ike"
  40. 400 print"h. [200]ayes 1200 or [204]ike"
  41. 410 print"i. [200]ayes 2400 or [204]ike"
  42. 420 print"j. [205]anual [196]ial"
  43. 430 print"[208]lease select the letter corresponding"
  44. 440 print"to the type of modem you own:"
  45. 450 print"[[211][212][207][208]] to [209]uit, [f3] for [208]revious [208]age[146]";
  46. 460 print"";
  47. 470 mt=peek(39933)and15:mt=mt+65
  48. 480 printchr$(mt);"[157]";:poke204,0
  49. 490 poke 198,0
  50. 500 getb$
  51. 510 ifb$=chr$(13)thenb$=chr$(mt)
  52. 520 ifb$=chr$(134)then120
  53. 530 if(b$<chr$(65))+(b$>chr$(74))then500
  54. 540 b=asc(b$)-64
  55. 550 poke204,1:printb$;
  56. 560 poke39935,pa
  57. 570 onbgoto580,620,680,720,1040,1000,780,840,900,960
  58. 580 poke39933,cp+dp:poke39934,6
  59. 590 fori=39890to39905:pokei,0:next
  60. 600 f$="dumb"
  61. 610 goto1340
  62. 620 poke39933,cp+dp+1:poke39934,6
  63. 630 fori=39890to39905:pokei,0:next
  64. 640 f$="com1650"
  65. 650 print:print"[215]hat is the speed of your modem?"
  66. 660 print"1. 300 bits/second"
  67. 670 print"2. 1200 bits/second":goto1120
  68. 680 poke39933,cp+dp+2:poke39934,6
  69. 690 fori=39890to39905:pokei,0:next
  70. 700 f$="com1660"
  71. 710 goto1220
  72. 720 poke39933,cp+dp+3:poke39934,8
  73. 730 fori=1to3:m$=mid$("atz",i,1)
  74. 740 pokei+39889,asc(m$):next
  75. 750 poke39893,13:fori=39894to39905:pokei,0:next
  76. 760 f$="com1670"
  77. 770 goto1220
  78. 780 poke39933,cp+dp+6:poke39934,6
  79. 790 fori=1to8:m$=mid$("ate1q0v1",i,1)
  80. 800 pokei+39889,asc(m$):next
  81. 810 poke39898,13:fori=39899to39905:pokei,0:next
  82. 820 f$="smart"
  83. 830 goto1220
  84. 840 poke39933,cp+dp+7:poke39934,8
  85. 850 fori=1to8:m$=mid$("ate1q0v1",i,1)
  86. 860 pokei+39889,asc(m$):next
  87. 870 poke39898,13:fori=39899to39905:pokei,0:next
  88. 880 f$="smart"
  89. 890 goto1220
  90. 900 poke39933,cp+dp+8:poke39934,10
  91. 910 fori=1to11:m$=mid$("ate1q0v1&c1",i,1)
  92. 920 pokei+39889,asc(m$):next
  93. 930 poke39901,13:fori=39902to39905:pokei,0:next
  94. 940 f$="smart"
  95. 950 goto1220
  96. 960 poke39933,cp+dp+9
  97. 970 fori=39890to39905:pokei,0:next
  98. 980 f$="dumb"
  99. 990 goto1080
  100. 1000 poke39933,cp+dp+5:poke39934,8
  101. 1010 fori=39890to39905:pokei,0:next
  102. 1020 f$="vks6470/80"
  103. 1030 goto1340
  104. 1040 poke39933,cp+dp+4:poke39934,6
  105. 1050 fori=39890to39905:pokei,0:next
  106. 1060 f$="miteym/hes"
  107. 1070 goto1340
  108. 1080 print:print"[215]hat is the speed of your modem?"
  109. 1090 print"1. 300 bits/second"
  110. 1100 print"2. 1200 bits/second"
  111. 1110 print"3. 2400 bits/second"
  112. 1120 print"[208]lease select the number corresponding"
  113. 1130 print"to your modem speed: ";
  114. 1140 ms=peek(39934)/2-2
  115. 1150 ms=ms+48:printchr$(ms);"[157]";:poke204,0
  116. 1160 poke198,0
  117. 1170 getb$:ifb$=chr$(13)thenb$=chr$(ms)
  118. 1180 ifb$=chr$(134)then120
  119. 1190 b=val(b$):if(b=0)+(b>3)then1170
  120. 1200 b=2*(b+2):poke39934,b
  121. 1210 goto1340
  122. 1220 t=peek(39933)and16:dt$=chr$(82):ift=16thendt$=chr$(84)
  123. 1230 print:print"[196]o you have a [210]otary or [212]ouch-[212]one"
  124. 1240 print"telephone service (r/t)? "
  125. 1250 print"([201]f you are unsure, please use 'r'.)"
  126. 1260 print"[145][145][145]";dt$;"[157]";:poke204,0
  127. 1270 poke198,0
  128. 1280 getb$
  129. 1290 ifb$=chr$(13)thenb$=dt$
  130. 1300 ifb$=chr$(134)then120
  131. 1310 ifb$=chr$(82)thenpoke39933,peek(39933)and239:poke39909,80:goto1340
  132. 1320 ifb$=chr$(84)thenpoke39933,peek(39933)or16:poke39909,84:goto1340
  133. 1330 goto1280
  134. 1340 poke204,1
  135. 1350 print"[147][208]lease enter the [205]initel phone number"
  136. 1360 print"nearest you (do not enter area code for"
  137. 1370 print"local calls):"
  138. 1380 print
  139. 1390 print"      [205][201][206][201][212][197][204][160][212][197][204][197][208][200][207][206][197][160][196][201][210][197][195][212][207][210][217]"
  140. 1400 print"[204]ocation                [206]umber"
  141. 1410 print"[204]oading phone numbers..."
  142. 1420 print"[213]se [[195][213][210][211][207][210][160][213][208]] and [[195][213][210][211][207][210][160][196][207][215][206]]"
  143. 1430 print"to review [205]initel phone numbers."
  144. 1440 print"[205]initel supports 300 and 1200 (2400 at"
  145. 1450 print"(*) locations) bps modems."
  146. 1460 print"[[211][212][207][208]] to [209]uit, [f3] for [208]revious [208]age[146]";
  147. 1470 print""
  148. 1480 open2,z,2,"0:dat.phones,s,r"
  149. 1490 i=0
  150. 1500 input#2,pn$(i)
  151. 1510 i=i+1
  152. 1520 if st<>64 then 1500
  153. 1530 close2
  154. 1540 l=i-1
  155. 1550 fori=0to11:printpn$(i):next
  156. 1560 fori=l+1to191:pn$(i)=bl$:next
  157. 1570 print"";
  158. 1580 i=0
  159. 1590 j=peek(39910+i)
  160. 1600 ifj=13then1630
  161. 1610 printchr$(j);
  162. 1620 i=i+1:goto1590
  163. 1630 poke204,0
  164. 1640 poke198,0
  165. 1650 getb$
  166. 1660 ifb$=chr$(134)then320
  167. 1670 ifb$=chr$(13)then1840
  168. 1680 if(b$=chr$(44))or(b$=chr$(42))or(b$=chr$(35))then1730
  169. 1690 ifb$=chr$(17)then1800
  170. 1700 ifb$=chr$(145)then1820
  171. 1710 ifb$=chr$(20)then1770
  172. 1720 ifb$<chr$(48)orb$>chr$(57)then1650
  173. 1730 ifi=20then1650
  174. 1740 poke204,1:printb$;:poke204,0
  175. 1750 poke39910+i,asc(b$)
  176. 1760 i=i+1:goto1650
  177. 1770 ifi=0then1650
  178. 1780 poke204,1:print" [157][157] [157]";:poke204,0
  179. 1790 i=i-1:poke39910+i,0:goto1650
  180. 1800 ifk<lthenk=k+12
  181. 1810 gosub3250:goto1650
  182. 1820 ifk>0thenk=k-12
  183. 1830 gosub3250:goto1650
  184. 1840 poke204,1
  185. 1850 poke39910+i,13:poke39911+i,0
  186. 1860 if(peek(39933)and15)<>8then1950
  187. 1870 print"[196]oes your phone # have an (*) (y/n)? y";"[157]";:poke204,0
  188. 1880 poke198,0
  189. 1890 getb$
  190. 1900 ifb$=chr$(13)thenb$=chr$(89)
  191. 1910 ifb$=chr$(134)then320
  192. 1920 ifb$=chr$(78)thenpoke39934,8:goto1950
  193. 1930 ifb$=chr$(89)then1950
  194. 1940 goto1890
  195. 1950 poke204,1
  196. 1960 print"[147][215]hat is the device address of your"
  197. 1970 print"printer (4/5)?"
  198. 1980 print"([201]f you don't have a printer or are"
  199. 1990 print"unsure of the address, press [[210][197][212][213][210][206]].)"
  200. 2000 print"[[211][212][207][208]] to [209]uit, [f3] for [208]revious [208]age[146]";
  201. 2010 print"";
  202. 2020 p=peek(39932)and5:p=p+48
  203. 2030 printchr$(p);"[157]";:poke204,0
  204. 2040 poke198,0
  205. 2050 getb$
  206. 2060 ifb$=chr$(13)thenb$=chr$(p)
  207. 2070 ifb$=chr$(134)then1340
  208. 2080 b=val(b$):if(b<4)+(b>5)then2050
  209. 2090 b=b-3
  210. 2100 onbgoto2110,2120
  211. 2110 poke39932,4:goto2130
  212. 2120 poke39932,5
  213. 2130 poke204,1:print"[147][201]f you have a [205]initel user [201][196],"
  214. 2140 print"please enter it here:"
  215. 2150 print"([204]eave blank and press [[210][197][212][213][210][206]]"
  216. 2160 print"if you don't have a user [201][196] yet.)"
  217. 2170 print"[[211][212][207][208]] to [209]uit, [f3] for [208]revious [208]age[146]";
  218. 2180 print"";
  219. 2190 i=0
  220. 2200 j=peek(39875+i)
  221. 2