[address omitted]
February 28, 1992
Dear Bob,
Well, as you can probably tell, I got my new computer. My dad splurged a bit: he got me a 386SX portable with Windows. This is being written on Microsoft Write for Windows (not Word; Write is their bargain word processor). As of yet, I haven’t really bought any other programs for it, just a printer cable and a mouse. I will probably get some stuff for it later though – you know, math stuff and an assembler or compiler.
I had an idea about how to read DOS disks on our other computers without getting a CRC error every track. There are 2 possibilities. Either you can format a disk on the 2068 and artificially put the DOS first track on it – yes, DOS can read a disk properly formatted this way – or you could write or modify code to read the disk directly.
We discussed earlier that DOS disks only have 9 sectors on them, which is what causes the CRC error – LKDOS expects 10 sectors on every track. DOS will not format a disk with 10 sectors on it, that just isn’t an option in the FORMAT program. As it turns out, DOS will read and write properly formatted disks with 10 sectors per track. I’ve really only tried it with 3.5 inch disks, but it should be true of 5.25 as well.
Of course, that raises the question of what is proper format. If we are talking about a 5.25 disk with 10 sectors per track and 40 tracks, that means we have a total of 800 sectors instead of 720, or 400K instead of 360K. Not a bad deal anyway, but the number 400 becomes significant in another way.
Let me just give it to you immediately. The boot sector, the first 512 bytes of track 0, would have to contain the following information (X means it doesn’t matter):
0: 235 60 144 X X X X X 8: X X X 0 2 2 1 0 16: 2 112 0 144 1 253 2 0 24: 10 0 2 X X X X X
The rest of that sector is “don’t care”. I haven’t figured out why the first 3 numbers are there, but they are apparently necessary. The next 2 sectors from 512 to 1535 are the FAT. On a blank, formatted disk this would have the numbers 253, 255, 255, and the rest all 0. Since we told it there were 2 copies of the FAT, naturally 1536 to 2559 are exactly the same as 512 to 1535. The direectory would start at 2560, run to 1024 on track 1, and should be all 0s on a blank disk. If you do this on a disk with 10 sectors per track, everything should work out.
The other option is more interesting, though a little more complicated. Naturally, the routines in the cartridge can’t be changed to read only 9 sectors. I have seen that if you ignore the CRC error it really doesn’t matter, but of course you can’t tell if there is a real error or just 9 sectors. We could get around this by modifying the routines from Hcode, the ml part of the LKDOS format program. They [ar]e not in ROM, and include all of the appropriate routines: read, write, seek, step, and select (plus [fo]rmat, of co[ur]se). The only problem is making sure you have the right version of the altered co[de] – Hcode.Cl [f]or you, Hcode.Ca for my AERCO interface. So far, I have only found 4 locations that would need to be altered (I think). In the Larken version, these are at 9CE2h, 9CFBh, 9DD7h, and 9EBDh. Of course, I’ll check whether the corresponding changes (at different locations) work with the AERCO version. If they do, then we could simply use the altered versions instead of George’s code. Though the fact that there are at least 3 versions of the code – one for your Larken i/f, one for my AERCO, and one I think for Zebra – would make things more difficult.
As you can tell, I have both the Larken and AERCO versions of Hcode, but not any others. I know Larry made at least one other cartridge, but he may have made more, and each one for a different disk i/f would have its own version of Hcode. My Hcode is larger than yours, since AERCO used 16-bit port addresses, but I would imagine the other(s) would be almost identical to one or the other of ours.
Oh, naturally I have hooked up my good printer to this machine and will be using my old Fastext with the 2068 from now on. I had to tell both the computer and the printer that it was an IBM Proprinter instead of a Panasonic, but that is only a minor inconvenience at best. I had more trouble hooking up the mouse for Windows – I accidentally erased the mouse driver and had to use the 2068 to recover the file. That’s why I know reading or writing a 9-sector disk is nothing more than an inconvenience under LKDOS read track and write track. Write track didn’t even tell me there was anything wrong!
I’ll check out whether there are only 4 changes to Hcode for AERCO before I mail this, so you should find out in the P.S. if that is everything. That will be it for now, though. George has my corrections to the AERCO printer software to make it work with a Fastext.
Sincerely,
P.S. Yes, at least for the AERCO version of LKDOS FORMAT, there were only 4 places that needed changing. I had some old IBM 5.25 disks that I wanted to copy the programs to my laptop, which takes 3.5 inch disks, and so used the copy disk command on the modified FORMAT to copy from drive 1 (the 5.25) to drive 0. It didn’t complain (no CRC errors or anything) and neither did the laptop. I was able to copy PC-Write (a shareware word processor) and ISETL (a language) to my hard drive. Nothing to say about actually reading files from one computer on the other, though.
P.P.S. The DOS information and especially the data earlier is only for 5.25″ diskettes. I can of course provide it for 3.5 (and be more certain it is accurate) if you wish.