home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.whtech.com
/
ftp.whtech.com.tar
/
ftp.whtech.com
/
Geneve
/
9640news
/
CAT10
/
TBMCLN.ARK
< prev
next >
Wrap
Text File
|
2006-10-19
|
4KB
|
144 lines
?
For those wayward soles who decide to buy a clone, you'll probably
find that you'll need a way to send text files back and forth between
it and the TI. This is expecially true if, as in my case, your boss
is too cheap to let you buy a computer for work so you have to take in
one of your spare TI's to use there.
In a way, it's embarrasing to upload this stuff to the TI library. It
is really crude. But then again, I _am_ a crude person. And, after
all, these _are_ the "programs" I actually use in real life. So why
shouldn't I upload them, eh?
The following are the pgms I use to transmit text files back and forth
from my IBM clone to my real computer -- the TI-99/4A. I have one of
the clone's RS232 ports going to my modem. When I want to connect the
clone and the computer, I disconnect the connector from the modem and
connect to one of the TI RS232 ports. That's all there is to the
hardware end of it.
To receive text files from the clone on my computer, I use Fast Term's
capture buffer. To send text files from my computer to the clone, I
use the following Extended BASIC program:
90 OPEN #2:"RS232.BA=1200.DA=8.PA=N"
100 OPEN #1:"DSK1.FILENAME"
110 IF EOF(1)<>0 THEN 500
120 LINPUT #1:X$
130 PRINT #2:X$
140 GOTO 110
500 CLOSE #1 :: CLOSE #2
510 END
If you use this program, send me whatever you think it's worth. Just
send cash, please. No stamps.
Here's a BASICA program that receives the text file and stores it on
disk -- in this case a fixed disk (or hard disk if you prefer).
10 OPEN "C:filename" FOR OUTPUT AS #2
20 OPEN "COM1:1200,N,8,1" AS #1
30 Y$=""
40 FOR I=1 TO 5000
50 IF LOC(1)<>0 THEN 90
60 NEXT I
70 PRINT "done..."
80 CLOSE #1:CLOSE #2:END
90 X$=INPUT$(1,1)
100 IF X$=CHR$(13) OR X$=CHR$(10) THEN 130
110 Y$=Y$+X$
120 GOTO 40
130 X$=INPUT$(1,1):PRINT #2,Y$
140 GOTO 30
This is a QuickBASIC program to transmit text to the TI. I use Fast
Term's capture buffer to receive it and put it on diskette.
' TRANSMIT.BAS
' Transmit an ASCII file to TI
PRINT "FILE NAME - ";
INPUT F$
OPEN F$ FOR INPUT AS #1
OPEN "COM1:1200,n,8,1" AS #2
ON COM(1) GOSUB check
COM(1) ON
nxt:
IF EOF(1)<>0 THEN GOTO transend
COM(1) ON
LINE INPUT #1, x$
IF LEN(x$) = 0 THEN PRINT #2," ": GOTO nxt
FOR i% = 1 TO LEN(x$)
y$ = MID$(x$,i%,1)
IF ASC(Y$) = 9 THEN Y$=" "
IF ASC(y$) > 31 AND ASC(y$) < 127 THEN PRINT #2,y$;
NEXT i%
PRINT #2,""
GOTO nxt
transend:
CLOSE #1:CLOSE #2:END
check:
z$ = INPUT$(1,#2)
IF z$ <> CHR$(147) THEN GOTO chkrtn
waithere:
PRINT "Stopped..."
z$ = INPUT$(1,#2)
IF z$ <> CHR$(17) THEN GOTO waithere:
PRINT "Started again."
COM(1) OFF
chkrtn:
RETURN
This is a QuickBASIC program I use to upload text to GEnie. This is
the cuprit that is responsible for all those ridiculous messages
Buh'Wheat leaves. Notice the similarities with the previous program!
' XMIT.BAS
' Transmit an ASCII file to GEnie.
EL$=CHR$(10)+CHR$(13)
PRINT "FILE NAME - ";
INPUT F$
OPEN F$ FOR INPUT AS #1
OPEN "COM1:1200,n,8,1" AS #2
ON COM(1) GOSUB check
COM(1) ON
nxt:
IF EOF(1)<>0 THEN GOTO transend
COM(1) ON
LINE INPUT #1, x$
IF LEN(x$) = 0 THEN PRINT #2," "+EL$:GOSUB DELAY: GOTO nxt
FOR i% = 1 TO LEN(x$)
y$ = MID$(x$,i%,1)
IF ASC(Y$) = 9 THEN Y$=" "
IF ASC(y$) > 31 AND ASC(y$) < 127 THEN PRINT #2,y$;:GOSUB DELAY
NEXT i%
PRINT #2,EL$:GOSUB DELAY
GOTO nxt
transend:
CLOSE #1:CLOSE #2:END
check:
z$ = INPUT$(1,#2)
IF z$ <> CHR$(147) THEN GOTO chkrtn
waithere:
PRINT "Stopped..."
z$ = INPUT$(1,#2)
IF z$ <> CHR$(17) THEN GOTO waithere:
PRINT "Started again."
COM(1) OFF
chkrtn:
RETURN
delay:
FOR J%=1 TO 100: NEXT J%
RETURN
(Note. This line is _not_ part of the preceeding program.)
Download complete. Turn off Capture File.