home *** CD-ROM | disk | FTP | other *** search
- 10 rem ********************************
- 20 rem ******** 1670 autodial *********
- 30 rem ********************************
- 40 rem ************* by ***************
- 50 rem ********************************
- 60 rem ******** david bradley *********
- 70 rem ********************************
- 80 :
- 90 open2,2,0,chr$(6)+chr$(0)
- 100 rem open15,8,15,"s0:1670":close15:save"1670",8:verify"1670",8
- 110 print#2,"[193][212][214]0"
- 120 :
- 130 rem *********************
- 140 rem *** variable list ***
- 150 rem *********************
- 160 :
- 170 rem a$ = input from modem
- 180 rem er = modem no respond time-out
- 190 rem l = sound routine counter
- 200 rem s = sid reference value
- 210 rem xx = time delay
- 220 rem ab = abort check
- 230 rem ab$ = abort get
- 240 rem i = time delay/misc counter
- 250 rem g$ = yes/no
- 260 rem nu$ = number to dial
- 270 rem ms$ = modem status
- 280 rem na = number of attempts
- 281 rem pt$ = pulse or tone
- 282 rem pt = pulse or tone
- 290 :
- 300 rem *************
- 310 rem *** setup ***
- 320 rem *************
- 330 :
- 340 print"[147]"
- 350 printchr$(14),chr$(8)
- 360 xx=0
- 370 a$=""
- 380 ab$=""
- 390 er=0
- 400 g$=""
- 410 i=0
- 420 l=0
- 430 s=0
- 440 nu$=""
- 450 ms$=""
- 460 na=1
- 470 ab=0
- 480 poke53280,0
- 490 poke53281,0
- 500 print""
- 510 :
- 520 rem *************
- 530 rem *** start ***
- 540 rem *************
- 550 :
- 560 xx=250:gosub1260:ifpt$=""thengosub1650
- 570 print" 1670 [193]utodial [194]y [196]avid [194]radley"
- 580 print" ------------------------------"
- 590 print"([208]ress [210][197][212][213][210][206] [212]o [209]uit)"
- 600 print"[201][206][208][213][212] [206]umber [212]o ";pt$;" [196]ial*[157][157][157]";
- 610 input nu$
- 620 fori=1tolen(nu$)
- 630 ifmid$(nu$,i,1)="#"then675
- 640 ifmid$(nu$,i,1)="*"then675
- 650 ifmid$(nu$,i,1)="-"then675
- 660 ifasc(mid$(nu$,i,1))>57then690
- 670 ifasc(mid$(nu$,i,1))<48then690
- 675 nexti
- 680 goto700
- 690 gosub1340:print"[197]rror [201]n [206]umber [201]nput...[210]e-[197]nter.":xx=1000:gosub1260:goto340
- 700 if nu$="*"thenprint"[209]uit? ([217]/[206]) ":goto720
- 710 goto760
- 720 getg$
- 730 ifg$=""then720
- 740 ifg$="y"thenprint"[147]":end
- 750 goto340
- 760 iflen(nu$)<7thengoto850
- 770 iflen(nu$)>30thengoto790
- 780 goto920
- 790 gosub1340:print"";nu$:print"[201]s [193] [194]it [204]ong "
- 800 print"[196]ial [193]nyway?"
- 810 getg$
- 820 if g$=""then810
- 830 if g$<>"y"thenprint"[147]":goto570
- 840 goto920
- 850 gosub1340:print"";nu$;" [201]s [204]ess [212]han 7 [196]igits!"
- 860 xx=500:gosub1260
- 870 print"[196]ial [193]nyway?"
- 880 getg$
- 890 if g$=""then880
- 900 if g$<>"y"thenprint"[147]":goto570
- 910 ifab=1thengoto1130
- 920 print"[196]ialing ";nu$;" [193]ttempt [206]umber:";na
- 930 print"[212]o [193]bort [196]ialing [207]peration [208]ress [193]ny [203]ey"
- 940 print" [193]nd [215]ait "
- 950 print""
- 955 ifpt<>0then965
- 960 print#2,"[193][212][196][212]";nu$
- 965 print#2,"[193][212][196][208]";nu$
- 970 na=na+1
- 980 get#2,a$
- 990 getab$:ifab$<>""thenab=1
- 1000 er=er+1
- 1010 ifer>2500thenms$="":print"[206][207] [195][193][210][210][201][197][210]":er=0:xx=500:gosub1260:goto910
- 1020 ifa$=""then980
- 1030 ms$=ms$+a$
- 1040 ifa$=chr$(102)then1120
- 1050 ifa$=chr$(179)then1120
- 1060 ifa$=chr$(177)then1190
- 1070 ifa$=chr$(98)then1190
- 1080 getab$:ifab$<>""thenab=1
- 1090 er=er+1
- 1100 ifer>2500thenms$="":print"[206][207] [195][193][210][210][201][197][210]":er=0:xx=500:gosub1260:goto910
- 1110 goto980
- 1120 print"[206][207] [195][193][210][210][201][197][210]":ms$=""
- 1130 ifab=1thenab=0:print"*** [193]borting ***":xx=1500:gosub1260:goto340
- 1140 xx=500:gosub1260
- 1150 print" "
- 1160 print"[196]ialing ";nu$;" [193]ttempt [206]umber:";na;""
- 1170 er=0
- 1180 goto960
- 1190 print"[195][207][206][206][197][195][212]":na=0:ms$="":gosub1340
- 1200 print"[204]oading [210][213][206][212][197][210][205] [208][204][213][211]"
- 1210 load"runterm plus",8
- 1220 end
- 1230 rem *****************************
- 1240 rem *** time delay subroutine ***
- 1250 rem *****************************
- 1260 fori=1toxx
- 1270 nexti
- 1280 return
- 1290 :
- 1300 rem *****************************
- 1310 rem *** alarm/bell subroutine ***
- 1320 rem *****************************
- 1330 :
- 1340 s=54272
- 1350 forl=0to24
- 1360 pokes+l,0
- 1370 nextl
- 1380 pokes+1,100
- 1390 pokes+5,10
- 1400 pokes+15,255
- 1410 pokes+24,15
- 1420 pokes+4,21
- 1430 gosub1550
- 1440 xx=500:gosub1260
- 1450 pokes+24,0
- 1460 forl=0to24
- 1470 pokes+l,0
- 1480 nextl
- 1490 return
- 1500 :
- 1510 rem *****************************
- 1520 rem *** screen blanking ***
- 1530 rem *****************************
- 1540 :
- 1550 poke53265,100
- 1560 xx=250:gosub1260
- 1570 poke53265,27
- 1580 xx=250:gosub1260
- 1590 return
- 1600 :
- 1610 rem *****************
- 1620 rem * pulse or tone *
- 1630 rem *****************
- 1640 :
- 1650 print"[215]ould [217]ou [204]ike [212]o [196]ial [208][146]ulse or [212][146]one?"
- 1660 getpt$:ifpt$=""then1660
- 1670 ifpt$<>"p"andpt$<>"t"then1650
- 1680 ifpt$="t"thenpt=0:pt$="[212]one"
- 1690 ifpt$="p"thenpt=1:pt$="[208]ulse"
- 1700 print"[147]"
- 1710 return
-