home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib29b.dsk
/
AUTO.LOG.ON.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
3KB
|
96 lines
10 REM ************************
20 REM * AUTO.LOG.ON *
30 REM * BY FRED AMUNDSEN *
40 REM * COPYRIGHT (C) 1986 *
50 REM * BY MICROSPARC, INC. *
60 REM * CONCORD, MA 01742 *
70 REM ************************
80 REM BULLETIN BOARD NAME:
90 BB$ = "NIBBLE HOT LINE"
100 REM BULLETIN BOARD NUMBER:
110 NUMBER$ = "1-617-369-8920"
120 REM YOUR FIRST NAME:
130 NAME$ = "FRED"
140 REM YOUR MODEM IS IN SLOT NUMBER:
150 SLOT = 2
160 REM ALTERNATE THE BULLATIN BOARD PROMPTS AND YOUR RESPONSES
170 DATA "FIRST NAME:","FRED"
180 DATA "LAST NAME:","AMUNDSEN"
190 REM INSERT MORE DATA DTATEMENTS HERE AS NECESSARY
200 DATA EOF,EOF
210 BELL$ = CHR$(7)
220 D$ = CHR$(4): REM CONTROL D
230 DIAL$ = CHR$(17): REM CONTROL Q
240 MODEM = 1656 +SLOT
250 FLAGS = 1912 +SLOT
260 GOSUB 920: REM SETUP RECEIVE RTN
270 GOTO 500: REM MAINLINE
280 REM RECEIVE SUBROUTINE
290 L2 = LEN(Q$)
300 POKE 0,L2
310 REM PAGE 3 ROUTINE
320 PRINT D$;"PR#0"
330 PRINT D$;"IN#";SLOT
340 CALL 768
350 RETURN
360 REM XMIT
370 PRINT D$;"IN#0"
380 PRINT D$;"PR#";SLOT
390 INVERSE
400 FOR K = 1 TO LEN(S$)
410 PRINT MID$ (S$,K,1);
420 FOR I = 1 TO 100: NEXT I
430 NEXT K
440 PRINT
450 NORMAL : RETURN
460 REM WAIT SUBROUTINE
470 FOR K = 1 TO 500
480 NEXT K
490 RETURN
500 REM MAINLINE
510 TEXT : HOME : VTAB 3: PRINT "AUTO LOG-ON": PRINT "BY FRED AMUNDSEN": PRINT "COPYRIGHT 1986 BY MICROSPARC, INC.": VTAB 8
520 PRINT "CALLING ";BB$;"...": PRINT
530 PRINT D$;"PR#";SLOT
540 PRINT DIAL$;NUMBER$
550 IF PEEK(MODEM) <127 THEN 780
560 PRINT BELL$;BELL$
570 GOSUB 460: REM PAUSE
580 REM SEND A FEW CARRIAGE RETURNS BEFORE BEGINNING
590 PRINT : FOR I = 1 TO 100: NEXT I: PRINT
600 PRINT : PRINT
610 READ Q$,S$: GOSUB 840
620 IF Q$ = "EOF" THEN GOTO 660
630 GOSUB 280: REM RECEIVE
640 IF PEEK(MODEM) <127 THEN END : REM DISCONNECTED
650 GOSUB 360: GOTO 610: REM XMIT
660 REM START TERM PROGRAM
670 PRINT D$;"PR#0"
680 INVERSE
690 PRINT : PRINT
700 PRINT "OK ";NA$;" TAKE OVER FROM HERE"
710 NORMAL
720 PRINT : PRINT
730 PRINT BELL$
740 PRINT D$;"IN#";SLOT
750 POKE FLAGS,138
760 INPUT A$
770 END
780 REM NO ANSWER
790 PRINT D$;"PR#0"
800 PRINT D$;"IN#0"
810 PRINT : PRINT "NO ANSWER. PLEASE STAND BY": VTAB 23
820 FOR I = 1 TO 6000: NEXT I
830 GOTO 500
840 CTR = 848
850 FOR K = 1 TO LEN(Q$)
860 J = ASC( MID$ (Q$,K,1)) +128
870 POKE CTR,J
880 CTR = CTR +1
890 NEXT K
900 RETURN
910 REM RECEIVE SUBROUTINE AT PAGE 3
920 POKE 768,162: POKE 769,0: POKE 770,32: POKE 771,12: POKE 772,253: POKE 773,32: POKE 774,237: POKE 775,253: POKE 776,221:
930 POKE 777,80: POKE 778,3: POKE 779,208: POKE 780,243: POKE 781,232: POKE 782,228: POKE 783,0: POKE 784,208: POKE 785,240:
940 POKE 786,96
950 RETURN
960 END