text
stringlengths
0
99.6k
errors, then log off and reload
your dumb terminal program and
try the process again.
Don't forget to Verify the disk you
were using as the opened file will
not be good.
Here is the code for BXD.BAS:
10 print"bootstrap xmodem downloader"
11 print"(c) 1985 by chrisdos"
20 open2,2,0,chr$(6):dim i%(132)
30 ack$=chr$(6):nak$=chr$(21):eot$=chr$(4)
40 open8,8,8,"cbterm,w,p"
50 forx=1to25:get#2,a$:nextx:print#2,nak$;
60 gosub100
70 ifck%<>i%(132)thenprint"check sum bad":goto50
80 forx=4to131:print#8,chr$(i%(x));:nextx:get#2,a$
90 b=b+1:print"block ok":print#2,ack$;:goto60
100 n=fre(0):forx=1to132
110 ifpeek(667)=peek(668)goto110
120 get#2,a$:i%(x)=asc(a$+chr$(0)):print".";
130 ifx=1anda$=eot$thenclose8:print"done":print#2,ack$:stop
140 nextx:print"have block "b
150 ck%=0:forx=1to131
160 ck%=(ck%+i%(x))and255:nextx:return
Enter it carefully, don't forget the ;'s
and other easyly overlooked things.
If all goes well, you will be able
to download a very fine terminal program
that you can then use to up and down
load just about anything else.
If you have any questions, pleas leave
them in a message to SYSOP in CBIG.
No EMAIL please.
HAVE FUN !
BXD.BAS (C) 1985 by Chrisdos
.+++++++++++++++++++++++++++++++++++++
. Version 1.1 of BXD.BAS
. This includes a small terminal routine in the program itself, and
may work directly witout the need for an external terminal program.
. Fill in lines 40 - 90 with a routine to dial your modem, or manually
connect with your phone.
5 open5,2,0,chr$(6):dim i%(132)
10 printchr$(14)"[CLS][CRDN][CRDN][CRDN] Bootstrap XMODEM Downloader Ver 1.1"
20 print" Written by Christopher Dunn
30 print"[CRDN][CRDN][CRDN] Use the <F1> key to start the Download"
100 print"[Terminal Mode]
110 get#5,a$:if st=8 goto170
120 a=asc(a$+chr$(0))and127
130 if a=8 then a=157:goto160
140 if a>=65 and a<=90 then a=a+32:goto160
150 if a>=97 and a<=122 then a=a-32
160 print chr$(a);
170 get a$:if a$="" goto110
180 a=asc(a$+chr$(0)):if a=20 then a=8:goto220
190 if a=133 goto 1000:rem do xmodem
200 if a>=193 and a<=218 then a=a-128:goto220
210 if a>=65 and a<=90 then a=a+32
220 print#5,chr$(a);
230 goto 110
1000 rem xmodem download
1010 ack$=chr$(6):nak$=chr$(21):eot$=chr$(4):b=1
1020 print"[CLR] Xmodem Downloader.
1030 print"Enter file name for your disk:";:f$="":input f$:if f$="" goto 100
1040 print"Working! Please standby"
1050 open8,8,8,f$+",p,w"
1060 forx=1to25:get#5,n$:next:q=0:print#5,nak$;
1070 get#5,c$:if st=8 goto 1170
1080 q=q+1:i%(q)=asc(c$+chr$(0)):print".";
1090 if q=1 and c$=eot$ then close8:print"DONE!":print#5,ack$:goto100
1100 z=0:if q<132 goto1070
1110 print:print"Checking Block"
1120 ck%=0:forx=1to131:ck%=(ck%+i%(x))and255:next
1130 if ck%<>i%(132) then print"Bad Checksum!":goto1060
1140 forx=4to131:print#8,chr$(i%(x));:next:get#5,n$
1150 print"Block "b" OK.":b=b+1:print#5,ack$;:q=0
1160 goto1070
1170 rem check for time out
1180 z=z+1:if z<500 goto 1070
1190 print"Block time out! Retrying....":z=0:goto1060
C128 Book Reviews
There is finally some information
available on the Commodore C128
computer: Commodore 64/128 Assembly
Language Programming, and The
Official Book for the Commodore 128
Personal Computer. Both of these
may be available at a local
bookstore, but can be ordered
direct from the publisher, Howard