Reprinted From
CRAGIST NEWSLETTER
August-December 1989
Before I begin, I would like to thank Bill Miller of SINCLINK for getting me involved with this project,in the first place. I would also like to thank Mark Wahl, also of SINCLINK,for writing the initial program, that I used,to get started in the right direction. All I really did was debug Mark’s program.
Our story begins some time ago in a land far, far away (Ohio). One day, I was talking to Bill on the phone. I was telling him that I had just gotten an Aerco disk drive system for my TS1000! After having had only cassette and stringy floppy, this was new and wonderous for my poor little person to behold. In the course of our conversation, Bill mentioned that I should try to read an MSDOS disk. He said that his system could read other disks made on other machines. So, I thought “Sure, I’m game to give it a try.” Well, Bill sent me a disk to try. I also sent him one to try.
After playing around with this project, on my own, I had all but given up. By reading the Aerco manual and lots of trial and error (lots of error), I was able to determine that this was going to require some machine-code programming skills. Since this was beyond my abilities, I thought, “I’ll call Bill and see if he can be of any help.” Well, Bill wasn’t but he asked Mark about it and in a matter of minutes, he was able to pound out a short program that he thought would work. However, since he had no TS1000 to try it on, back it came to me. I typed in the program and tried it: No go – nothing happened. The screen went blank and that was it. Ok, I know the drive needs to be started, so I added line: “700 RAND USR 12800.” Ok, let’s RUN the program! Crash! With error code 3: subscript out of range. Ok, let’s call Bill again. Unfortunately, he was not much help. After some more playing around with the program, I changed a line to read, “FOR K= 1 to 40” and IT WORKED!
All right, let’s see what all is on this disk. After 1 sector, error 3/1100 again! Ok, now variable “N” needs resetting, so I added line, “1085 IF N=SEND THEN GOTO 1160.” And,we’re off again! This time, it made it to 9 sectors before error 3/1100. I don’t know about you, but I was getting tired of the same error all of the time. The least it could do is come up with something new! Anyway, now variable “S” needs resetting, so I added line, “1015 IF S>9 THEN LET S=1”
This brings us to where the program is, today. It will still crash out with error 3/1100 when it comes across anything but text files, but I’m working on this problem, also. In the meantime, if you do use it and it crashes, just type in: PRINT PEEK K; and PRINT PEEK S; and avoid these areas.
If you have any questions, I can be reached at the address listed below. I would like to thank you for the time you have taken to read this article. And you can be sure that I will be typing away on my “little toy computer”for many years to come!
By the way, if you’re using a Memotech Centronics Printer interface, then you should reverse lines 940 and 960.
COLUMBUS T/S SURVIVOR
RICHARD MATEJOVIC
[address omitted]
[phone number omitted]
70 PRINT
80 PRINT
90 PRINT " WARNING ▒WARNING▒ WARNING"
95 PRINT
100 PRINT " THIS PROGRAM WILL CRASH"
110 PRINT "IF YOU DO NOT SET RAMTOP BY"
120 PRINT " POKING 16389,192 THEN NEW"
130 PRINT "PRESS ENTER IF YOU HAVE DONE SO"
140 PRINT
150 PRINT
160 PRINT "TO STOP THE PRINTOUT PRESS BREAK"
170 PRINT
180 PRINT "TO STOP THE DISK DRIVE TYPE IN"
190 PRINT """RAND USR 12852"" WRITE IT DOWN"
200 INPUT Z$
700 RAND USR 12800
800 LET MCADDR=32*1024-512-11
810 LET M=MCADDR
820 REM LD HL, $7E00
821 POKE M,33
822 POKE M+1,0
823 POKE M+2,126
830 REM LD C, $0
831 POKE M+3,14
832 POKE M+4,0
840 REM LD B, $0
841 POKE M+5,6
842 POKE M+6,0
850 REM CALL $3300
851 POKE M+7,205
852 POKE M+8,0
853 POKE M+9,51
860 REM RET
861 POKE M+10,201
900 DIM T$(256)
905 DIM A(512)
910 FOR N=1 TO 32
920 LET T$(33 TO 47)="? ?$??,()*+,-./"
930 LET T$(48 TO 64)="0123456789:;"<=>? "
938 REM TYPE LINE BELOW THIS
939 REM IN INVERSE VIDEO
940 LET T$(65 TO 90)="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
950 LET T$(91 TO 96)="????--"
960 LET T$(97 TO 122)="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
970 FOR N=123 TO 256
980 LET T$(N)=" "
990 NEXT N
1000 FOR K=1 TO 40
1010 FOR S=1 TO 9
1015 IF S>9 THEN LET S=1
1020 CLS
1030 POKE (MCADDR+4),S
1040 POKE (MCADDR+6),K
1050 RAND USR MCADDR
1060 LET SSTRT=MCADDR+11
1070 LET SEND=SSTRT+512
1080 FOR N=SSTRT TO SEND
1085 IF N=SEND THEN GOTO 1160
1090 LET A=PEEK (N)
1100 LPRINT T$(A);
1110 NEXT N
1160 NEXT S
1170 NEXT K
1180 STOP
Editor’s Note:
This TS1000 program will be available soon for downloading from the Challenger BBS (Timex Users room) as a MINI XMOD 1.5 file under the title, “DOSRDR”
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.