Tim Mann's TRS-80 Pages

 Business card from 1981



TRS-80 Model I/III/4: Frequently Asked Questions

Here are a few frequently asked questions on the Radio Shack TRS-80 Model I, Model III, and Model 4. These are Z-80 based machines that were first introduced in 1977. The three models were partly compatible with one another, and incompatible with most everything else. Today they are of interest only to the nostalgic and a few folks who have specialized applications that were never ported to newer machines. The following are questions that people frequently ask me; your mileage may vary! This FAQ is available on the Web through the page http://tim-mann.org/trs80.html.
$Id: trs80faq.html,v 1.66 2011/08/07 23:06:04 mann Exp $

Contents


[1] Where can I get TRS-80 software and hardware?

A huge collection of TRS-80 software is available for download from the TRS-80 Revived Pages, http://www.trs-80.com/.

Most software from Misosys, Logical Systems, Galactic Software Ltd., Powersoft, and Breeze/QSD is now available for free download by permission of the copyright owner, Roy Soltoff (owner of Misosys). See http://tim-mann.org/trs80.html.

Computer News 80 has some commercial software and hardware products, a library of freeware disks, and a small monthly newsletter that still supports the TRS-80 I/III/4. You can contact them via the Web at http://www.ebaystores.com/computernews80/.

M. A. D. Software deals in TRS-80 products. Among other things, they have upgrades to the Model 4P ROMs and the MODELA/III file (Model III ROM image). Check out their Web site at http://madsoft.lonestar.org/, or contact them via email at madcs@madsoft.lonestar.org or via US mail at:

M. A. D. Software
P. O. Box 331323
Fort Worth, TX 76133-1323

Archive Software is a small venture run by Cord Coslor. Cord buys and sells used TRS-80 Model I/III/4 software and hardware (among other things). Here is his new contact information as of 2-Apr-2001:

Cord Coslor
Archive Software
21939 Hernando Ave.
Port Charlotte, FL 33952
(941) 625-1649
e-mail: ArchiveSoftware@juno.com
web: www.archivenews.net

Ian Mavric of Melbourne, Australia runs "The Right Stuff (aka TRS-80 Oldtimer Centre)". He deals in both hardware and software. See his Web page at http://ianmav.customer.netspace.net.au/trs80/.

There is a page of TRS-80s for sale linked from http://www.trs-80.com/.

You can still order some software from Tandy Software Replacement and/or Radio Shack Unlimited, formerly Radio Shack National Parts. You can ask at a store or call Radio Shack at 800-843-7422. I'm told that you might have to bug people for a while and maybe ask for a supervisor or someone who's been there longer, before you find someone who believes this is possible and knows how to do it. The purpose of Tandy Software Replacement is to supply replacement disks to people whose originals have been destroyed, so generally they do not provide manuals or packaging, and the prices are very low. They don't actually seem to care whether you originally owned the software. Radio Shack Unlimited also stocks (or can make up) full packages of some software, including manuals.

You can try bidding in the eBay auctions. Prices tend to be inflated, though.


[2] Where can I get information to repair or upgrade my TRS-80?

More hardware information is starting to appear on the Web these days. See the TRS-80 links on my Web page, at http://tim-mann.org/trs80links.html, both the "history and technical data" and "software and documentation downloads" sections.

You can ask on the newsgroup comp.sys.tandy. This is a good place for TRS-80 software questions too. You might also try searching back postings to the group with Deja News.

Also try the sources given in topic [1] to see if they carry hardware manuals. Tandy Software Replacement or Radio Shack Unlimited are said to be able to photocopy and sell manuals, but I haven't tried this.

Computer News 80 has a mail-in repair service; see topic [1].

Tandy Repair Centers may or may not be able to fix your TRS-80. There is some danger that they won't know how to find the necessary parts and information. They don't see a lot of these machines any more.


[3] How can I read my TRS-80 floppy disks in a PC?

This is a somewhat complex topic, and much of the rest of this FAQ is devoted to the details. There are a number of approaches, but I think the best is to copy the disks to virtual disk image (.DSK) files, as used by the various TRS-80 emulators; see the next few topics in this FAQ. Once you have your data in .DSK format, it will be much easier to work with. You can use an emulator to run the TRS-80 software that is on the disks, get directory listings, examine or print the data, extract individual files, etc.

Another approach that people sometimes try is to run TRSCROSS. This is an MS-DOS program for reading and writing TRS-80 diskettes that directly extracts individual files from the disks, without making a .DSK image. It's a very old program that seems to have trouble working on modern, fast PCs, and it puts your data into a format that is not directly usable with emulators. I do not recommend this approach, but if you really want to try it, TRSCROSS is available from my Misosys software page.

Another approach that doesn't work well is to try to read the disks in Linux without using an emulator. The Linux floppy driver is quite versatile, but (at least as of this writing) no matter how you configure it, you won't be able to read TRS-80 disks through the normal open/close/read/write interface that programs like "dd" use. First, the driver assumes that sector numbering always starts from 1, but most TRS-80 formats start it from zero. Second, the driver assumes that all sectors are written with a normal data address mark, but most TRS-80 formats write some sectors (usually those on the directory track) with a different DAM. The TRS-80 emulator for Linux (xtrs) talks to the floppy driver using the low-level "raw command" interface, which lets it get around these problems.

Still another approach is to connect a serial or parallel cable between your PC and a real TRS-80, and transfer the data over that. This is a lot slower than reading a floppy, but in some cases you can be stuck doing it when the other approaches discussed below don't work. Jeff Vavasour's Model I emulator includes instructions on how to do this with a Model I; see topic [4]. I don't have any advice beyond that, not having tried this approach myself.


[4] What TRS-80 emulators do you recommend?

Under Linux and other Unix-compatible operating systems, I recommend my xtrs Model I/III/4/4P emulator. It should work on any version of Unix with the X Window System, except that its support for physical floppy disk drives works only under Linux, and sound works only under Linux or other systems that have OSS-compatible sound drivers. It is free software with full source code included.

Also check out sdltrs by Mark Grebe. It is a TRS-80 emulator for Linux, Mac OS X, and Windows based on xtrs. All three versions of sdltrs have a text-based menu UI that makes it easier to insert/remove emulated floppy disks and tapes and to change other settings. The Mac version also has a nice native Mac GUI. At this writing I have only tried sdltrs briefly.

Under 32-bit and 64-bit Windows, Matthew Reed's TRS32 emulates Models I, III, and 4. The unregistered shareware version can be downloaded for free, but omits a few features. The full version costs $69. Due to a limitation of Windows NT family operating systems, it does not support physical floppy disk drives, only floppy images (.DSK files). It is very full-featured otherwise.

The TRS-80 emulators available for MS-DOS or 16-bit Windows do support physical floppy drives. I don't think any of them run under 32- and 64-bit Windows at all, however.


[5] What is a .DSK file?

A .DSK file is an image of a TRS-80 floppy disk in a file. They are used by TRS-80 emulators.

Warning: There are three kinds of .DSK files with different internal formats, one that originated with Jeff Vavasour's Model I emulator (JV1), one that originated with his Model III/4 emulator (JV3), and one that originated with David Keil's emulators (DMK). Each one adds support for more TRS-80 disk formats. Each of Jeff's emulators works only with the kind of .DSK file that was designed for it. Matthew Reed's emulators work with JV1 and JV3 transparently. David Keil's emulators and xtrs work with all three kinds.

Technical details of the JV1 and JV3 formats are now available from my Web page, http://tim-mann.org/trs80/dskspec.html. Technical details of the DMK format are available from David Keil's Web page, http://discover-net.net/~dmkeil/trs80/trstech.htm#Technical-DMK-disks.


[6] How can I convert my real TRS-80 floppy disks to .DSK files?

There are several possibilities:

(A) One way is to transfer data over the TRS-80's serial port or printer port. That's probably the best way if you have a Model I, because a stock Model I can read and write only single density, but many PCs cannot deal with single density (see topic [12]). Jeff Vavasour's Model I emulator includes instructions on how to do this; see topic [4].

(B) A faster and more convenient way, if you can get it to work, is to read the disks in a PC with a 5.25-inch floppy drive. Under MS-DOS or MS Windows, try Matthew Reed's freeware READDISK program. See http://www.trs-80emulators.com/downloads.html.

(C)If you have problems with READDISK or you are using Linux, you can copy the disks with an emulator, as follows.

  1. Get a TRS-80 emulator that supports both .DSK files and real floppy drives. See topic [4]. Read the emulator's instructions and get it running.
  2. Find a PC with a real 5.25-inch floppy drive attached. In theory, a 40-track DD drive is best if your TRS-80 had 40-track or 35-track drives, but you can use 80-track HD drives too. (On a PC, 40-track DD drives are usually called 180KB or 360KB drives, depending on whether they are single or double sided.) The trouble with this theory is that DD drives may not work with some emulators (see topic [21]), and if your DD drive is a pullout from a TRS-80, you may have difficulty cabling and jumpering it correctly for a PC.
  3. Configure the emulator with an LDOS or other operating system .DSK file as drive :0, a new, empty .DSK file as drive :1, and the real drive as drive :2. If you are using a Model I emulator with LDOS, note that Model I LDOS comes on two .DSK files, so configure the emulator with the second one (LDOSXTRA.DSK) as drive :3. Note: never try to use drive :3 for a double-sided disk (read or virtual) on the Model I; a limitation of the Model I hardware (which the emulators have no choice but to emulate faithfully) makes this fail to work.
  4. Boot the emulated machine. Model I LDOS requires an extra driver to deal with double density, so if you are using it, type FDUBL to the emulator after booting.
  5. Put the floppy into the real drive and copy it to the emulated drive (.DSK) file. If you are using LDOS 5.3.1, the command is QFB :2 :1. On LS-DOS 6.3.1, the command is DISKCOPY :2 :1. Both those commands format the floppy automatically.

The above instructions assume that the disk is in a format that can be copied by LDOS. For TRSDOS 1.3 and NEWDOS/80 disks that LDOS doesn't understand, you can get a TRSDOS 1.3 or NEWDOS/80 image from http://www.trs-80.com, use that as the operating system in the above procedure, and use appropriate TRSDOS 1.3 or NEWDOS/80 commands to copy the disk. Sorry; I can't help with the details, but see topic [23] for more help with NEWDOS/80.

(D) For copy-protected disks (or normal disks, actually), you can also try running one of the many TRS-80 copy utilities on an emulator, copying from a real PC drive to a .DSK image. This will work if the copy utility is compatible with the emulator and the physical disk can be read by a PC floppy controller. The procedure is generally similar to the instructions outlined above, but the details depend on which copy utility you're using. I've had good results with SuperUtility (available from http://tim-mann.org/misosys.html) running under xtrs, and I think it runs well under David Keil's emulator too. If you are using Model I SuperUtility, be sure to set the emulator to emulate either a Tandy or Percom double density adapter, not both at once. The CopyCat program available from David Keil's web site is also handy, as it only copies disks and is much more automated than SuperUtility. CopyCat works well under David Keil's emulator and under xtrs version 4.9 or later. Other copy utilities that are sometimes useful include Trakcess and HyperZap, though HyperZap has problems analyzing real disks when run under an emulator.

(E) Another method is to buy a Catweasel universal floppy controller card and copy the disks with it using the cw2dmk program from my Catweasel Tools. This method is good for disks that your PC can't read. See topic [12] for some reasons why your PC may not be able to read certain TRS-80 disks. See topic [16] and http://tim-mann.org/catweasel.html for more information on the Catweasel and the tools.


[7] How can I convert .DSK files to real TRS-80 floppy disks?

There are several possibilities:

(A) One way would be to transfer data from your newer computer to a real TRS-80 through its serial port or printer port. That may be the only way if you have a Model I, because a stock Model I can read and write only single density, but many PCs cannot deal with single density (see topic [12]). However, I don't know of any software for transferring data to the TRS-80 Model I through a serial or parallel port. (Kermit did exist for the Model 4, and you may be able to find XMODEM or the like, but I can't help with them.)

(B) A faster and more convenient way, if you can get it to work, is to write the disks in a PC with a 5.25-inch floppy drive. If you have Linux on your PC and your disk is a standard double-density format (40 or 80 tracks, 1 or 2 sides), you can use the programs trsfmt and diskdmp by Tony Duell, available from http://tim-mann.org/trs80/trsdsk.tar.gz. See the documentation included in the tar file. If you don't understand what to do with .tar.gz files, see the next method instead.

(C) A more general way to write TRS-80 floppy disks in a PC with a 5.25-inch floppy drive is to use an emulator. Suitable emulators are available for both Linux and DOS or Windows. Here is a procedure you can follow.

  1. Get a TRS-80 emulator that supports both .DSK files and real floppy drives. See topic [4]. Please don't say, "But I don't need an emulator, I have a real machine!" You need an emulator to run this procedure, and they are nice to have anyway, so get one.
  2. Get the files working for you in the emulator as .DSK files. Read the instructions for the emulator to find out how to do this.
  3. Find a PC with a real 5.25-inch floppy drive attached. In theory, a 40-track DD drive is best if your TRS-80 had 40-track or 35-track drives, but you can use 80-track HD drives too. (On a PC, 40-track DD drives are usually called 180KB or 360KB drives, depending on whether they are single or double sided.) The trouble with this theory is that DD drives may not work with some emulators, and if your DD drive is a pullout from a TRS-80, you may have difficulty cabling and jumpering it correctly for a PC.
  4. Bulk-erase a 5.25-inch floppy, preferably using an AC bulk tape eraser as sold by Radio Shack and others. You may be able to omit this step if you are using a 40-track drive, but it's a good idea to do it anyway. It is best to use floppies that are rated for double density or quad density, not high density. High density floppies may work in a pinch, but don't expect double density data to stay stable on them for a long time.
  5. Configure the emulator with an LDOS or other operating system .DSK file as drive :0, the .DSK file you want to convert as drive :1, and the real drive as drive :2. If you are using a Model I emulator with LDOS, note that Model I LDOS comes on two .DSK files, so configure the emulator with the second one (LDOSXTRA.DSK) as drive :3. Note: never try to use drive :3 for a double-sided disk (read or virtual) on the Model I; a limitation of the Model I hardware (which the emulators have no choice but to emulate faithfully) makes this fail to work.
  6. Boot the emulated machine. Model I LDOS requires an extra driver to deal with double density, so if you are using it, type FDUBL to the emulator after booting.
  7. Put the floppy into the real drive and copy the emulated drive (.DSK) file to it. If you are using LDOS 5.3.1, the command is QFB :1 :2. On LS-DOS 6.3.1, the command is DISKCOPY :1 :2. Both those commands format the floppy automatically.

The above instructions assume that the disk is in a format that can be copied by LDOS. For TRSDOS 1.3 and NEWDOS/80 disks that LDOS doesn't understand, you can get a TRSDOS 1.3 or NEWDOS/80 image from http://www.trs-80.com, use that as the operating system in the above procedure, and use appropriate TRSDOS 1.3 or NEWDOS/80 commands to copy the disk. Sorry; I can't help with the details, but see topic [23] for more help with NEWDOS/80.

(D) For copy-protected disks (or normal disks, actually), you can also try running one of the many TRS-80 copy utilities on an emulator, copying from a .DSK image to a real PC disk drive. This will work if the copy utility is compatible with the emulator and the physical disk format can be written by your PC floppy controller. The procedure is generally similar to the instructions outlined above, but the details depend on which copy utility you're using. I've had good results with SuperUtility (available from http://tim-mann.org/misosys.html) running under xtrs, and I think it runs well under David Keil's emulator too. If you are using Model I SuperUtility, be sure to set the emulator to emulate either a Tandy or Percom double density adapter, not both at once. The CopyCat program available from David Keil's web site is also handy, as it only copies disks and is much more automated than SuperUtility. CopyCat works well under David Keil's emulator and under xtrs version 4.9 or later. Other copy utilities that are sometimes useful include Trakcess and HyperZap.

(E) Another method is to buy a Catweasel universal floppy controller card and copy the disks with it using the dmk2cw program from my Catweasel Tools. This method is good for disk formats that your PC can't write. See topic [12] for some reasons why your PC may not be able to write certain kinds of TRS-80 disks. See topic [16] and http://tim-mann.org/catweasel.html for more information on the Catweasel and the tools.

(F) If you need a copy of LS-DOS 6.3.1 on a real floppy and have no other way to do it, M. A. D. Software will make a diskette for you for $7.50 US plus shipping. Paper documentation is included. You can request a single-sided or double-sided floppy. This service was announced on 19 January 1998. See topic [1] for contact information.


[8] How can I get individual files off a .DSK file or TRS-80 floppy disk?

Most of the TRS-80 emulators have programs for doing this. Read the instructions for your emulator to find out how to use them. Sometimes the program runs on the emulated Z-80 (a /CMD file); other times it runs on the host operating system (an .EXE file).

Under Jeff Vavasour's Model I emulator, the relevant program is VREAD.EXE. Under Jeff's Model III/4 emulator, it is EXPORT/CMD. Under Matthew Reed's emulators, the program is TRSREAD.EXE and is available only with registration. Under xtrs and David Keil's emulators, the program is called EXPORT/CMD (not the same program as Jeff's).


[9] How can I put individual files onto a .DSK file or TRS-80 floppy disk?

Most of the TRS-80 emulators have programs for doing this. Read the instructions for your emulator to find out how to use them. Sometimes the program runs on the emulated Z-80 (a /CMD file); other times it runs on the host operating system (an .EXE file).

Under Jeff Vavasour's Model I emulator, the relevant program is VWRITE.EXE. Under Jeff's Model III/4 emulator, it is IMPORT/CMD. Under Matthew Reed's Model I/III emulator, the program is TRSWRITE.EXE and is available only with the registered version. Under xtrs and David Keil's emulators, the program is called IMPORT/CMD (not the same program as Jeff's).


[10] What do I do with TRS-80 software that comes in .ZIP files?

Some TRS-80 software you will find on the Web is supplied in .ZIP archive files. You need to unzip these files to unpack their contents. There actually are unzip programs that run on a TRS-80, but they're slow and may not support all the compression types used by modern zip programs. So you'll generally want to unzip these archives on on your PC or Unix box. You can get free unzip programs from http://www.info-zip.org/pub/infozip/.

Within some .ZIP archives is a .DSK file. This is an emulated floppy disk file. See topic [5] and the rest of this FAQ for instructions on how to deal with .DSK files.

Other .ZIP archives contain individual files extracted from TRS-80 disks. You can use these with an emulated (or real) TRS-80 by copying the files onto a .DSK file or a real floppy. See topic [9] for instructions.

Some .ZIP archives of TRS-80 software may contain both a .DSK and the individual files extracted from it. This is perhaps the most convenient form, but obviously takes up twice as much space as either of the others.


[11] What are the system file passwords and password back doors on TRS-80 operating systems?

The table below is based partly on documentation and partly on actual test. Where a filename matches more than one pattern, use the first one that matches. If a password doesn't work, try others from the table and let me know of the error. If you have password information for other Model I/III/4 operating systems, let me know. The values in the TRSDOS 6 column should also work for versions of LS-DOS prior to 6.3.1.

Files        LDOS 5.1.0   LDOS 5.3.1   TRSDOS 6      LS-DOS 6.3.1
-----        ----------   ----------   --------      ------------
basic/*      (unused)     basic        basic         basic
lbasic/*     basic        (unused)     (unused)      (unused)
config/sys   ccc          ccc          ccc           ccc
*/sys        wolves       system       lsidos        system6
*/flt        gsltd        filter       filter        filter
*/dvr        gsltd        driver       driver        driver
*/dct        rrw3         driver       utility       driver or utility
*/cmd        rrw3         utility      utility       utility
*/hlp        (unused)     help         (unused)      help
back door    rs0lt0ff     rs0lt0ff     (nflag$ bit7) (nflag$ bit7)
The password listed as "back door" gives you access to all files regardless of what their real passwords are. It's documented! I confirmed by looking at the source code that TRSDOS/LS-DOS 6 has no such password, but I found that later versions of it have another, undocumented back door: if you turn on bit 7 of NFLAG$, all file password checking is disabled. The command MEMORY (A="N", B=128) will do this. This back door can be found in TRSDOS 6.2 and LS-DOS 6.3.1, but not in TRSDOS 6.1.2.

Model I TRSDOS 2.3 also has a back door password; the originally intended password is unknown, but the string "ubett" hashes to the correct value and can be used. The strings "f3gum", "nv36", and many others also work. VTOS 3.0 also has such a back door; the password "hadu" can be used.

The password "password" is a standard default in the TRS-80 world. If you're insistently prompted for a password in a situation where you don't think a password should be needed, try "password".

Another way to reconstruct TRS-80 passwords is through exhaustive search. This is quite fast because TRS-80 operating systems hash their passwords down to 16-bit values, so you need only find some password that hashes to the same value, not the exact original password. Here is a C program to do that.

/* trspwhash
 * Usage:  trspwhash password	  // Hash a password
 *         trspwhash -u 0xhash    // Unhash a password to letters
 *         trspwhash -n 0xhash    // Unhash a password to letters and digits
 */
#include <stdio.h>

unsigned int
pwhash(unsigned char pw[8])
{
    unsigned char *p = &pw[7];
    unsigned int count = 8;
    unsigned int hl, t1, t2;

    hl = 0xffff;
    do {
	t1 = hl & 0x07;
	t2 = hl & 0xff;
	hl = (t1 << 13) ^ (t1 << 9) ^ (t1 << 2) ^
	     (t2 << 8) ^ (t2 << 4)  ^ (t2 >> 3) ^
             (hl >> 8) ^ (*p-- << 8);
    } while (--count);
    return hl;
}

void
usage()
{
    fprintf(stderr, "usage: trspwhash [-u | -n] arg\n");
    exit(1);
}

int
main(int argc, char **argv)
{
    unsigned int goal;
    unsigned char pw[16];
    int i;
    if (argc == 2) {
	strncpy(pw, argv[1], 8);
	pw[8] = '\0';
	strcat(pw, "        ");
	for (i = 0; i < 8; i++) {
	    if (islower(pw[i])) pw[i] = toupper(pw[i]);
	}
	printf("%04x\n", pwhash(pw));
    } else if (argc == 3 && strcmp(argv[1], "-u") == 0) {
	goal = strtoul(argv[2], (void*)0, 0);
	strcpy(pw, "        ");
	for (;;) {
	    if (pwhash(pw) == goal) printf("%s\n", pw);
	    i = 0;
	    for (;;) {
		switch (pw[i]) {
		  case ' ':
		    pw[i] = 'A';
		    break;
		  case 'Z':
		    pw[i] = 'A';
		    i++;
		    if (i == 8) exit(0);
		    continue;
		  default:
		    pw[i]++;
		    break;
		}
		break;
	    }
	}
    } else if (argc == 3 && strcmp(argv[1], "-n") == 0) {
	goal = strtoul(argv[2], (void*)0, 0);
	strcpy(pw, "        ");
	for (;;) {
	    if (pwhash(pw) == goal) printf("%s\n", pw);
	    i = 0;
	    for (;;) {
		switch (pw[i]) {
		  case ' ':
		    pw[i] = 'A';
		    break;
		  case 'Z':
		    pw[i] = '0';
		    break;
		  case '9':
		    pw[i] = 'A';
		    i++;
		    if (i == 8) exit(0);
		    continue;
		  default:
		    pw[i]++;
		    break;
		}
		break;
	    }
	}		
    } else {
	usage();
    }
    return 0;
}

[12] What problems do PC floppy disk controllers have with TRS-80 disk formats? What problems do different TRS-80 models have with each other's disk formats?

The Western Digital 177x/179x floppy disk controllers that were used in TRS-80s have some capabilities that PC disk controllers generally lack. The executive summary is that (1) many standard PC floppy controllers can't handle single density at all, (2) even those that can handle single density generally cannot read the directory track on a Model I TRSDOS disk, and (3) there can also be problems reading double density disks. Here are more details.

Many PCs cannot handle single density (FM) encoding. The original Model I used single density exclusively, and even a Model I with a double density adaptor requires a single density boot sector on system disks. The original IBM PC controller required extra outboard components to support clock/data separation for single density, but IBM left them off to reduce their manufacturing costs. (So I'm told; I wasn't involved with PCs in that era.) This started the tradition of leaving out single density support in PCs. Modern PCs use more highly integrated IO chips that include data separation on the chip, but many still omit single density support. See topic [15] for a rundown on what PC controllers support single density and topic [16] for other hardware solutions that are available.

The WD1771, used in the TRS-80 Model I, is able to read and write single-density sectors with nonstandard data address marks (DAMs) 0xF9 and 0xFA, as well as the standard ones 0xFB (data) and 0xF8 (deleted data). The WD1791/1793 and later chips, used in the Model III and 4, can read all such sectors, but cannot distinguish between 0xFB and 0xFA or between 0xF9 and 0xF8. Model I's with double density adaptors have *both* controllers, and use the 1771 for single density, so they are fully compatible with stock Model I's. PC disk controllers, even those that do single density, cannot read sectors that use the 0xFA or 0xF9 DAM at all. (I have actually tested this only with 0xFA on a PC87306. I'd welcome corrections if other standard PC controllers can handle these data address marks.) See topic [16] for devices that can read these disks.

These differences would be no problem if Model I software did not actually use the nonstandard DAMs, but unfortunately, it does. In particular, Model I TRSDOS 2.x distinguishes between normal data sectors and directory sectors by using 0xFB for the former and 0xFA for the latter. On Model III/4 TRSDOS-like systems, where 0xFA is not fully supported, 0xF8 is used instead. Some later Model I systems (such as LDOS 5.0.2 and later) also switched to 0xF8 on the directory to allow for direct media compatibility with the Model III/4, while others stuck with 0xFA for direct Model I TRSDOS compatibility. Patches for TRSDOS 2.3 were developed that allow it to read and/or write 0xF8 directory sectors, but they were not widely used. (See topic [13].) Special software is supplied with Model III/4 operating systems that allows them to read Model I disks and/or convert them to Model III/4 format. (The REPAIR command on LDOS is an example of the latter.) No such software can work on a PC controller, however, because the 0xFA sectors cannot be read at all.

There are also many gratuitous format differences amongst the various TRSDOS-like TRS-80 operating systems. For most of the systems, a single-density, single-sided, 35-track disk is a common denominator, except for the DAM problem just discussed. Adding more tracks is usually not a problem, though some systems may insist that the directory remain on track 17, while others put the directory location in track 0, sector 0, byte 2. The various systems diverged in the way they generalized the format to work with double density and other larger drives. The main streams were LDOS, NEWDOS, and Model III TRSDOS 1.3. LDOS uses a variable number of sectors per granule (allocation unit) that must evenly divide the number of sectors per track, and uses exactly one cylinder for the dirctory. I believe NEWDOS always uses 5 sectors per allocation unit, but allows varying the packing of granules onto the disk and the number of granules used for the directory. Model III TRSDOS 1.3 made a large number of unnecessary changes to the format; it was clearly inspired by the Model I format, but it is not a compatible extension.

Many PC disk controllers have difficulty reading double density disks formatted by older releases of TRS-80 operating systems, even with the proper software on the PC. Many TRS-80 operating systems formatted the disks with too short a gap between the index hole and the first sector. Late releases of the Model III and 4 operating systems were corrected to format floppies with the proper gap lengths.

Working around the index hole problem can be tricky. With some drive/controller combinations, it may work to put a piece of tape over the index hole, but this is not usually successful. Another possibility is to read the disk with a Catweasel controller, if you have one; see topic [16]. Here are instructions for another approach, from Amardeep S. Chana:

  1. Locate wire number 8 in your floppy disk cable. Wire 1 normally has a colored stripe, and the wires are numbered sequentially from there.
  2. Cut this wire and install a switch so you can connect and disconnect this wire easily.
  3. Use one of the more reliable pieces of software to attempt a read on a real 360K drive:
    1. xtrs
    2. DMK emulator
    3. Anadisk or Teledisk
    READDISK is not very reliable; it is too sensitive to controller/drive combinations.
  4. First attempt a read with the switch closed. You will get an error. Then open the switch and retry. If it is a post index sector gap problem, this will fix it.
  5. Note that you must always first try with switch closed and then retry. The software doesn't initialize the controller properly if you just always leave the switch open. That wire is the index sense line. After at least one pulse has been detected, the system no longer needs index pulses for reads and the rest of the diskette should read fine.

Nick Andrew adds that with older drives (such as original TRS-80 drives), the drive itself does not need to see the index pulse, but the PC controller may still need to see at least one pulse to get started. In this case you can do without the switch; instead, insert a piece of cardboard alongside the disk after the first attempted access, positioning it so as to block the index hole sensor.


[13] How can TRSDOS 2.3 be patched to read single-density disks written by a Model III, Model 4, or PC?

There is a one-byte patch to TRSDOS 2.3 that allows it to read disks written with standard data address marks (0xF8 and 0xFB instead of 0xFA and 0xFB; see topic [12]). If you can find a PC that supports single density (many do not), you could use an emulator to make Model I disks on it, which you could then read on the Model I with the help of this patch. The patch is also useful if for some reason you need to make Model I disks on a Model III or 4. For instance, suppose you have a PC that can't write single density, but you also have a real Model III or 4, which can. In that case, you could copy software to a double density disk on the PC, then copy the double density disk to single density on the Model III or 4. Here's a description of the patch, from the Misosys EDAS manual. (EDAS was distributed on a Model III/4-compatible disk that Model I TRSDOS couldn't read without the patch.) If you want to apply the patch on a Model III or 4 before moving the disk over to a Model I, you can use Method (1), changing the drive number in line 10 as needed. New: I've also added a section to Method (1) that will let the modified disk boot even if its own directory track has 0xF8 data address marks.

Model I TRSDOS 2.3 Patch

Model I TRSDOS users will find difficulty in reading the distribution disk due to the data address mark used for the directory. Therefore, before making a BACKUP or copying EDAS files from the diskette, you will need to change one byte of the TRSDOS 2.3 disk driver using one of the following three methods. This change will not affect the operation of your TRSDOS.

Method (1) directly modifies the system diskette with a patch. To prepare for this patch, obtain a fresh BACKUP of your TRSDOS 2.3 to use for this operation. Then enter the following BASIC program and RUN it. After you RUN the program, re-BOOT your TRSDOS diskette to correct the byte in memory.

  10 OPEN"R",1,"SYS0/SYS.WKIA:0"
  20 FIELD 1,171 AS R1$, 1 AS RS$, 84 AS R2$
  30 GET 1,3: LSET RS$="<": PUT 1,3: CLOSE

Added 10-18-2000: If you are using this patch on a TRSDOS 2.3 disk that itself has 0xF8 data address marks, the disk will not boot unless you also patch the boot sector. You can do so by adding the following lines to the program. Methods (2) and (3) will not work for this purpose. You might get the message "INTERNAL ERROR IN LINE 60" when you run the program, for unknown reasons, but it works anyway.

  40 OPEN"R",1,"BOOT/SYS.WKIA:0"
  50 FIELD 1,220 AS R1$, 1 AS RS$, 35 AS R2$
  60 GET 1,1: LSET RS$=CHR$(28): PUT 1,1: CLOSE

Method (2) uses DEBUG to change the byte in memory. Use this if you do not want to patch your TRSDOS system diskette and are familiar with DEBUG.

  1. At TRSDOS Ready, type DEBUG followed by <ENTER>.
  2. Depress the <BREAK> key to enter the DEBUGger.
  3. Type M46B0 followed by the <SPACE> bar.
  4. Type 3C followed by <ENTER>.
  5. Type G402D followed by <ENTER>.

Method (3) uses a POKE from BASIC to change the value directly in memory. This procedure is as follows:

  1. Enter BASIC (files = 0, protect no memory)
  2. Type POKE &H46B0,60 followed by <ENTER>.
  3. Type CMD"S" followed by <ENTER>.

[14] What are the differences among single, double, quad, and high density floppy media?

There is essentially no difference between single and double density media (if you can actually find any single density media anymore). Double density media has been tested and certified for double density recording, which is slightly more demanding than single density recording; conceivably, a dropout that might not be noticed in single density could be a problem in double density. In practice, though, I suspect that back in the days when manufacturers sold both DD and SD media, the media came off the same production line and the SD media would have met the DD standard nearly all the time.

"Quad density" 5.25-inch media is certified for double density recording at 80 tracks per side rather than 40 tracks per side. This is quite different from "high density," discussed below. 80 TPS quad density media should work fine at 40 TPS double density. I've been told that there can be problems using 40 TPS double density media at 80 TPS quad density; I believe the person who told me this, but neither of us really knows the reason. All 3.5-inch media is certified for 80 TPS.

You will also sometimes see media labelled as one-sided or two-sided. Both types have magnetic material on both sides, but on the disks advertised as one-sided, the second side may not have been tested. It's even possible, though unlikely, that the second side was tested and failed.

Occasionally you'll find a "flippy" 5.25-inch disk. Such a disk can be recorded on both sides by removing it from the drive and flipping it over. It has two separate write-protect notches and two separate index hole cutouts in the jacket. Sometimes users would make their own flippy disks with a hole punch.

There were also a few "flippy drives" made. These had two write-protect sensors and two index-hole sensors, and they could thus read and write on the reverse side of an ordinary diskette inserted into the drive upside-down. If you have disks written in a flippy drive but you don't have a flippy drive, the reverse side will be quite hard to read. See topic [26] for ways to do it.

"High density" media is very different, and should not be interchanged with single/double/quad density media. It has different magnetic properties (higher coercivity, requiring a higher write current from the disk drive). If you try to format DD media as HD, the media will be too strongly magnetized and bleed-through can occur, garbling your data either immediately or after the disk has sat on the shelf for a while. Such a disk may also be difficult to erase and rewrite with new data. Similarly, formatting HD media as DD is not a good idea either; the media will be too weakly magnetized, and your data may be completely unreadable or may fade away after a while. These problems are worse on 5.25-inch disks than on 3.5-inch disks because the difference in coercivity is greater for 5.25-inch media, but they exist for both types of disk.

You can distinguish between 3.5-inch HD and DD media by looking for a hole in the jacket on the opposite edge from the write-enable hole; HD media has the extra hole, while DD media does not. You cannot reliably distinguish between 5.25-inch HD and DD media if they are not labelled. There are a couple of ways of guessing: DD media usually has a hub reinforcing ring (but not always), while HD media generally does not. The color of the media also tends to be different; HD media is darker.


[15] Which PC floppy controllers and drives can handle single density (FM)?

Some folks will tell you that you need an older PC to get single density (FM) support. This is wrong. The floppy disk controllers in many PCs being produced today support FM, and many older ones do not. Some controllers will support FM on all floppy drives, while other controllers have problems with 5.25-inch 1.2MB HD drives and may require you to change a jumper in the drive or (more likely) use a 5.25-inch 360K DD drive instead.

If you need to read and write single density disks, the best thing to do is to try it on the PCs that you have available and see if you can find one where it works. This is more accurate and usually easier method than opening up the box and peering at the part number on the FDC or SuperIO chip (which might not give you a definite answer anyway). If you can't find one that works, the information below and in topic [16] may be of some help.

The detailed information below was gleaned from newsgroup and Classic Computer mailing list postings by Amardeep S. Chana, Don Maslin, Pete Cervasio, Allison Parent, Tony Duell, Nick Andrew, and Knut Roll-Lund, together with some knowledge of my own. I've liberally borrowed from their words for this answer. Don't take this listing as absolute truth; in particular, some of the posters were not in full agreement on some points! Feel free to send additions or corrections if you have some information.

Controllers The answer to the question "does floppy disk controller chip X support single density (FM)?" can be "yes", "no", or "implementation dependent" (that is, "maybe"). With early controllers, the answer was "maybe", because more external components were needed to handle data separation for both FM and MFM than for MFM alone. As mentioned in topic [12], the original IBM PC omitted the external components needed to support FM, and many later compatibles followed suit. Modern controllers typically integrate data separation on the main chip, but some support FM and some do not. It seems that in some cases, a PC may be able to read single density but not write it, or it may be able to read and write but not format; these behaviors may depend on external components, not just the controller chip.

Note: if you are going to use this information, do not rely on software to identify your FDC chip. Open the box and look. Newer "compatible" chips often look to software like older chips, but the status of their FM support may be different. Also, be aware that the information below may be incomplete or wrong in some details. If you know more, send mail.

Drives In principle, all floppy disk drives support single density; the drive cannot tell whether you are giving it FM or MFM encoded data. However, it seems that some controllers cannot do FM on 5.25-inch drives that spin at 360 RPM, only on drives that spin at 300 RPM. Doing FM on a 360 RPM 5.25-inch drive requires a data rate of 150 Kb/s, which apparently is not implemented in some controllers. Most 5.25-inch 1.2MB HD drives spin at 360 RPM at all times, but some are dual spindle speed. A dual spindle speed drive spins at 360 RPM for HD but slows down to 300 RPM for SD and DD. Teac 5.25-inch drives can generally be set for dual spindle speed by changing a jumper, but other brands may not have this ability.

Unfortunately, we did not understand the rotation speed issue when gathering most of the information below. It's quite possible that some controller that are recorded as not supporting FM at all were actually tried only with 360 RPM 5.25-inch drives, and would have worked with 300 RPM 5.25-inch drives. It's also possible that some controllers that are recorded as supporting FM were only tried with 300 RPM 5.25-inch drives and won't work with 360 RPM 5.25-inch drives. This could also explain why different people reported inconsistent results for some controllers.

Will not support single density (FM)

The Intel 82078 data sheet implies that the parts do not support single density. The MFM bit in its command set is defined as (1 = double density mode, 0 = reserved). On PC FDCs that do support FM, setting this bit to 0 selects FM. Tim had a system that used a 82078 on the motherboard, and FM did not work on it (he tried only a 360 RPM drive). Similar wording is used on the 82091AA data sheet.

Amardeep has a card with the Goldstar "Prime 1" chip and it does not read or write FM.

The NS PC87332 data sheet is not specific about whether FM is supported. Amardeep tested the PC87332 and it failed to support FM in a Dell XMT590.

Amardeep says: I found a board with the Motorola MCS3201FN and it doesn't do FM. The data sheet contains much contradictory information. Verbiage only declares compatibility with IBM system 34 double density. But it also says the MFM bit is (1 = MFM, 0 = FM) and selection tables show various FM data rates and sector sizes. The electrical characteristics show only double density ratings. Don says: The two examples that I have been exposed to suggest that it does not support FM.

Will support single density (FM)

The above NS and SMC parts are completely stand alone with on board filters, write precomp generators, and data separators. They should work with FM in any board implementation, unless something specific is done to prevent it (not likely). This is per the National and SMSC (new name for SMC semiconductor) data sheets. Amardeep tested the NS PC87306 and SMC FDC37C65 using Jeff Vavasour's Model 4 emulator and Tim Mann's xtrs 2.8 under Linux. They both read and write FM with no problems. It is important to verify the part number on the chip itself. Many of the newer NS parts will identify themselves to software as PC87306, but may not support single density.

Tim has a machine that uses the NS PC97307, and FM works just fine on it. Tim used a 360 RPM drive, so 300 RPM drives should work with this chip too. The PC87307/PC97307 data sheet is not specific about whether FM is supported. Note that some software may incorrectly identify these parts as PC87306.

The Intel 82077AA and 82077SL data sheet clearly states these parts support FM. Again, verify the part number on the chip. Newer Super I/O parts like Winbond W83877F or SMC FDC37C665IR may identify themselves to software as 82077's but may have different characteristics.

The NS 8477 data sheet indicates that it does support FM (it is functionally and pin for pin compatible with the Intel 82077).

A sewing machine/embroidery website mentioned that "Goldstar Prime 2c or 3b chipset" controller cards can be used to read single density embroidery diskettes. The URL is http://www.wilcom.com.au/stestdsk.htm.

Implementation dependent

This category is meant for older chips that require external components as part of the data separation logic (or that require external components if FM is to be supported). Thus they may or may not support FM depending on the implementation.

The 1988 data sheet for the NS 8473 states on page 8-32, "While the controller and data separator support both FM and MFM encoding, the filter switch circuitry only supports the IBM standard MFM data rates. To provide both FM and MFM filters external logic may be necessary." Don says: I have DTK FDC cards with the 8473 and read Osborne 1 disks with them just prior to writing this. Amardeep says: I have to recant my original statement that none of my 8473 boards worked. All three of them do work (read/write/format) at this time. Must have been an error on my part.

I believe the 765 was the chip in the original IBM PC, as discussed above. Amardeep says: Intel 8272 is a NEC 765 clone and therefore dependent on implementation.

Uncertain

Available information on these chips is contradictory. Perhaps some individual chips of the same part number work with FM and some don't, perhaps they have bugs that affect some software drivers and not others, or perhaps there is a 300 RPM vs. 360 RPM problem in some cases. More testing may be needed.

The FDC37C665GT and FDC37C665IR have very similar data sheets, and neither mentions that FM is not supported. However, Pete has an FDC37C665IR in one of his machines, and FM works on it; while Tim has an SMC FDC37C665GT in one of his machines, and its FM support does not work---it can neither read FM nor format FM disks that can be read by other systems. Tim was using a 360 RPM drive, and Pete did not report what kind of drive he was using, so it's possible that this was the issue.

Amardeep says that the Winbond chips have never worked in FM on any adapter or motherboard he's ever encountered them on; no idea if it's the chip or the implementation. Pete says that on his ASUS board, the Winbond W83877F actually will read and write FM but will not format FM. Nick Andrew says that the Winbond 83977EF could only read some sectors when he tried it with xtrs. Steve Tate said that a W83877AF worked fine for him using 22disk.

Tony says: The data sheet claims the UMC 8398 will do FM or MFM. In my experience it will correctly handle MFM disks (with both standard and my own software). When you try FM, it almost works. It just mangles the last byte in the sector. This is (apparently) a known problem with this chip. Allison says: The last byte mashed in the UMC is also common to most 765s and is related to DMA read/write timing such that if you delay the DMA request by about 1-3uS (several FDD bit times) in FM mode it should work fine. Amardeep says: The UMC 8398's data sheet says it does support FM without any external components. Also, the 8397 could be listed with it. It was the predecessor without high density drive support for XT applications. Its data sheet also says FM support is provided. Since Tony's and my testing shows FM tends to fail, and Allison believes it is DMA related, "uncertain" may be the best category for them.

Amardeep says: UMC did make some Super I/O chips (UM82C862F) but I couldn't find data sheets for them. I have two IDE/FDC/IO paddle boards with that chip and neither handles FM. Allison says: I have used UMC SuperIO chips to do FM with ease using the internal data separator.

Don says: I have the WD 37C65 in the WD FOX card and it will also read/write FM. Amardeep says: The only information I have on the WD 37C65 is the Always IN2000 card I have with that chip cannot read or write FM. The data sheet shows there is really no external circuitry associated with data separator or filters. Yet we have seen examples that pass and fail, so it might be a revision thing or an untested feature, or DMA mangling or...


[16] What PC add-on cards can read single density (FM) and other unusual formats?

Several different types of add-on floppy controller cards are available for the PC that will let you read floppy formats that your built-in controller may not be able to handle, such as single density (FM).

Sometimes an add-on floppy card will have a 765-compatible floppy controller that supports FM. The Adaptec AHA1542CF SCSI hard disk controller includes a floppy disk controller on the same card that supports FM and works with both 300 RPM and 360 RPM drives; so do some other Adaptec cards. This card is easy to use; you just plug it into any spare ISA slot and disable your motherboard FDC.

The Catweasel universal floppy disk controller (see http://www.jschoenfeld.com/) uses custom hardware that can be programmed to handle just about any format. The software that comes with the Catweasel can read Amiga, Apple II, and a bunch of other obscure old formats. I've written a program for the Catweasel that can copy any disk written by a TRS-80 to the DMK image format (see topic [5], including single density and "copy-protected" disks. It supports both 300 RPM and 360 RPM drives. The program is now available on the Web at http://tim-mann.org/catweasel.html. It runs on Linux, MS-DOS, and Windows 95; probably also Windows 98 and Windows ME. It is untested on other versions of Windows, but will not run on versions that keep tighter control over the hardware such as NT, 2000, XP, Vista, etc.; however, you can use it by booting off an MS-DOS floppy. Catweasel cards were in short supply for a while, but as of July 2000 they should be available for purchase again.

I've heard people mention the MicroSolutions CompatiCard, but the CP/M FAQ says that it is a discontinued product, so you'd have to find a used one somewhere. I don't know what chip it uses.

The Central Point Copy II PC Option Board uses a custom chip and can copy many kinds of disk, including FM, MFM, GCR, and even disks that used the "weak bits" method of copy protection. This is also a discontinued product. I had one of these on loan for a while and read the documentation, but never found time to install it in a machine and try it.

I've heard that add-on floppy controller cards for the PC that are specifically intended for disk duplication or for converting disks from other kinds of machines often use Western Digital 17xx chips or custom hardware that is more versatile than standard PC controllers. I don't know specific model names or where to get these cards.


[17] How can I add lowercase to a TRS-80 Model I?

Displaying lowercase letters on a TRS-80 Model I requires both a hardware modification and a software driver. If you aren't sure whether you have the hardware modification, go into Basic and type "POKE 15840,98". If you have lowercase, you will see a lowercase "b" in the middle of the screen; if not, you will see a quotation mark. If you need the hardware modification, the next section describes how to install it; if not, skip down to the section about software drivers.

Lowercase hardware modification

A stock Model I has only 7-bit wide video memory. This is enough for 6-bit, uppercase-only ASCII and the TRS-80's 6-bit graphics characters, but not for lowercase. In a stock machine, the missing bit6 is synthesized as !bit7 & !bit5. You can add a true 8th bit using the following instructions.

You will need a low-power soldering iron, thin rosin-core solder, thin insulated copper wire (such as wire-wrap wire), one 2102 static memory chip (1K x 1 bit) and preferably a new character generator ROM. The character generator replacement is needed to make the modified machine compatible with the Level II Basic ROM's display driver and to give it true descenders on lowercase letters. If you don't have a new character generator, you will need to install an SPDT switch to turn off the mod when using Level II Basic or other software that doesn't have a lowercase driver, and your lowercase g, j, p, q, and y (and maybe a) will be shifted up a couple of pixels from the baseline.

New: M.A.D. Software is advertising Model I lowercase modification assemblies on their Garage Sale page! These should include the 2102 and the character generator ROM, but check with M.A.D. Software before ordering to be sure.

Turn your TRS-80 keyboard unit face down on a cloth, and remove the six bottom screws, being careful to note which went where. Now turn it face up and lift off the cover. Lift up the keyboard, being careful not to pull the ribbon cable at the left front loose. Remove the plastic spacers between the two boards, and lift out the boards, setting them down with the component side of the logic board up.

Find Z45 in the lower left corner of the board. The new 2102 will be mounted piggyback over this one. Bend pins 11 and 12 of the new 2102 straight out, and set it over Z45. Solder (quickly, with low heat) each pin of the new 2102, except 11 and 12, to the corresponding one on Z45.

Find Z30. From its left side run three traces, a narrow one between two wide ones. Cut through the narrow one with a sharp knife, being sure to break the connection completely without damaging other traces. (This trace connects Z30 pin 13 to Z60 pin 4.)

If you don't have a replacement character generator: Find a mounting place for the SPDT switch where you will be able to get to it after the case is reassembled. Run a wire from pin 11 of the new chip to Z60 pin 5. Run a second wire from Z60 pin 4 to the common terminal of the switch. Run a third wire from another terminal of the switch to Z30 pin 13. Run a fourth wire from the remaining terminal of the switch to the new chip's pin 12. One switch position will now give you uppercase only but will work with Level II Basic; the other will give you lowercase in software that has a lowercase driver and meaningless symbols in software that doesn't.

If you do have a replacement character generator: Run a wire from pin 11 of the new chip to Z60 pin 5. Run a second wire from pin 12 of the new chip to Z60 pin 4. Remove the old character generator ROM chip (Z29) and replace it with the new one. I think Z29 was socketed, but if it isn't, you will have to very carefully desolder it without overheating the PC board and making the traces lift, and preferably without overheating the old chip in case you need to use it again. I suggest installing a socket for the new chip.

Reverse the disassembly procedure to put your machine back together. If you kept the old CG ROM and installed a switch, try both switch positions to see what they do. If anything doesn't work, go back and carefully recheck your wiring.

Lowercase software drivers

The display driver in the Model I Level II Basic ROM forces everything to upper case. In fact, it actually writes ASCII codes between 0x00 and 0x1f into the video RAM and expects them to display as uppercase letters. That's why you get meaningless symbols if you don't replace the character generator: the standard character generator has those symbols in positions 0x00 to 0x1f, but you can't see them until you add the 8th bit of video memory.

TRSDOS uses the ROM driver, but alternative operating systems like LDOS and Newdos include a lowercase driver, as do many other programs. Usually these programs will detect and use lowercase automatically if it is present.

It is possible to add a lowercase driver to TRSDOS or even to cassette-based Level II Basic. In the future I'll probably add a listing of such a driver here.


[18] My Model 4 or 4P has video problems in Model 4 mode, but is fine in Model III mode. How can I fix it?

This answer is based on material contributed by David Gish (gish@gomemphis.com) and others.

The model 4/4P uses two different methods for generating horizontal sync pulses for the monitor, depending on whether it's in 64 character mode (Model III) or 80-character mode (Model 4). In 64-char mode, horizontal sync is derived from the master clock, which is regulated by a crystal and thus very stable. However, in 80-char mode a Phase-Locked Loop circuit (PLL) is used to generate the signal, and it drifts out of calibration over time. This can result in display wrap-around or a total loss of sync. There is a trimmer capacitor that can be adjusted to fix it.

The biggest problem in making the adjustment is getting to it with the power turned on so that you can see what you're doing. The trimmer cap is on the motherboard, with no access from outside the case. On the Model 4, it's near the top at the back, but the case and a metal shield are in the way. On the Model 4P, it's near the front of the CRT, but just far enough under it that you can't get to it with a pot tweaker.

If some of the terms below leave you behind or the procedure sounds scary, you should definitely not tackle this yourself -- take it to a friend who's a hardware techie. Warning: whenever you have the case open, be careful what you touch, especially with metal objects. You can get a shock even if power is off, and if power is on, a metal object touching the wrong two contacts could easily short out the power supply and fry it.

Model 4

1. Unplug all cables from the computer. Position the computer on its back panel to provide access to the case bottom. Remove the ten screws from the case bottom, noting carefully which went where for later reassembly.

2. Position the computer upright and remove the screw and washer from the top of the back panel.

3. Position the computer upright with the video screen towards you. Very carefully remove the case top, lifting straight up, looking into the case through the vent holes and the disk bay openings to be certain that you do not catch the neck (back end) of the picture tube on anything. It is all too easy to break the picture tube, a very expensive mistake. Once the tube is clear, rotate the case top 90 degrees counterclockwise and set it down to the left of the base, being careful not to overstretch the connecting cables.

4. Remove the internal metal shields as needed to gain access to the main circuit board.

5. Turn the machine on and boot it into Model III (64-column) mode. It's adequate to go into cassette Basic by holding down the Break key and pressing the orange reset button. Type enough commands to fill the screen with text.

6. Adjust the monitor's horizontal sync back and forth until the picture breaks up in both directions, then set the adjustment to the middle of this range. This completes the Model III mode adjustment.

7. Insert a TRSDOS-6.x disk and boot the system to place it in 80-column mode. Type the date and then do a DIR to fill the screen edge-to-edge (if the screen's unreadable, you'll have to type blind).

8. Find the trimmer cap. Early (non-gate-array) versions may not have this cap; it does not appear in the Model 4 Technical Reference Manual, 1983 edition. Hopefully this video problem does not occur on those machines. On gate array machines, it should be approximately 3 inches from the left of the main circuit board when viewed from the back, and should be labelled C210.

9. Adjust the trimmer. You'll need a small pot tweaker, preferably a non-metallic one. You shouldn't have to adjust it much; it's very sensitive. Turn the brightness up so you can see the whole raster pattern and set the trimmer so that the image is stable and centered in the pattern, with no bent or warped edges.

10. Turn the power off and unplug the machine.

11. Reassemble the machine -- you did pay attention to how it came apart, didn't you? Again be very careful not to damage the picture tube.

Model 4P

1. Remove the case and front bezel. The main case is held on by screws near the front and two large ones under the handle. The front bezel is held on by several screws inside the case.

2. Remove the top of the monitor enclosure.

3. Turn the machine on and boot it into Model III (64-column) mode, or just reboot it with no disk and wait for the multi-lingual "insert disk" screen to appear.

4. Adjust the monitor's horizontal sync back and forth until the picture breaks up in both directions, then set the adjustment to the middle of this range. The picture should centered and clean. Replace the top of the enclosure.

The PLL adjustment must be done with power on while observing the screen, since it is very sensitive. This means that the cables all need to be hooked up at the time. To access the trimmer cap you have to shift the motherboard forward enough to move the trimmer beyond the front of the CRT, but still have the critical cables connected. This is impossible with the factory-supplied disk drive cable connected at the rear, but the disk drive needs to be connected in order to boot the system into 80-column mode!

David Gish came up with the plan below, which works but involves disconnecting the disk drives from the motherboard with power on. This is not generally recommended, except as a last resort. If you do this, follow the indicated steps carefully to minimize the risk.

An alternative solution is to replace the factory cable with a longer one so that you don't have to unplug it. If you do that, you can change to the longer cable after step 7, then omit steps 11 and 12.

5. Turn the machine off and lay it on its left side. Keep it on its side for this entire procedure.

6. Remove all mounting screws from the motherboard. It should now be loose, but will not move much due to the cable connections.

7. Apply electrical tape to the edge connectors at the rear of the motherboard to prevent shorting these against the frame while moving the motherboard around.

7a. If you have a longer disk drive signal cable, replace the factory cable with it at this point. See topic [19] for information on making cables.

8. Carefully examine the motherboard to be sure nothing else is shorting against the frame and turn the machine on.

9. Insert a TRSDOS-6.x disk and boot the system to place it in 80-column mode. Type the date and then do a DIR to fill the screen edge-to-edge (if the screen's unreadable, you'll have to type blind.)

10. Remove the TRSDOS disk.

10a. If you replaced the factory disk drive cable with a longer one (step 7a), you can now skip the somewhat dangerous steps 11 and 12 and go directly to step 13.

11. Carefully unplug the power connectors from both disk drives. This is to prevent damage during the next step. (Warning: There is an unshielded, solid-metal fan in this area cooling the monitor enclosure!)

12. Carefully disconnect the disk drive interface ribbon cable from the motherboard. This will free the back of the board and give you enough play to move it forward.

13. Move the motherboard out and forward, paying close attention to the rear edge connectors. Now you know the reason for the tape. Watch all cables while doing this to make sure you're not over-stretching them.

14. Eventually, you should be able to expose the trimmer cap enough to make the adjustment. It is probably labeled C231. You'll need a small pot tweaker, preferably a non-metallic one. You shouldn't have to adjust it much since, as mentioned above, it's very sensitive. Turn the brightness up so you can see the whole raster pattern and set the trimmer so that the image is stable and centered in the pattern, with no bent or warped edges. (Note: another source suggests removing the jumper from E1/E2 and putting on in E9/10 while making the adjustment, then moving it back to E1/E2 when you're done.)

15. Turn the power off and unplug the machine.

16. Remove the tape on the motherboard connectors and reassemble the machine -- you did pay attention to how it came apart, didn't you? Remember to reconnect the disk drive power and data cables.


[19] I want to add or replace TRS-80 floppy disk drives. What's going on with the setup and cabling?

Cabling a TRS-80 disk drive is a bit tricky. It works differently from a PC, and there are some differences among the TRS-80 models, and differences between the Radio Shack way of doing things and other ways that are sometimes used. I'm sorry there is so much detail here, but I don't really see how to condense it to a cookbook "just do this" approach, since there are several things you might want to do with the information.

Generally, Radio Shack handled drive select by pulling pins in the cable connectors. On the Model I, each drive was internally jumpered to respond on all four different drive selects, the three standard ones from the Shugart definition (pins 10, 12, 14) and one extra one that R.S. defined (pin 32, which later was officially defined as side select for two-sided drives). On the cable, there were four drive connectors, and each had a different one of those four pins left, with the other three removed. On the Model III and 4, the internal drives and external drives were cabled separately, so it was not necessary to use four different pins for drive select. Instead, the first two drives are pins 10 and 12 on the internal cable, while the other two drives are pins 10 and 12 on the external cable. However, the pin-pulled system is still used.

An alternative way that many users switched to was to use a plain cable with all 34 pins intact. Then you have to open up each drive and make sure that a different drive select is jumpered on each one. Usually they are jumpers marked DS1, DS2, DS3 (and sometimes also DS4) or DS0, DS1, DS2 (and sometimes also DS3). Many drives don't have a jumper for the fourth drive select. Drives that were intended for Radio Shack Model I systems may have pin 32 hardwired instead of using a jumper, so beware.

If you want to use double-sided drives on a TRS-80, you may have to switch to the pins-intact system in order to bring side select to every drive. If you have some single-sided drives in the system, make sure that none of them have pin 32 interally hardwired to one of the drive selects. TRS-80 Models III, 4, and 4P have side-select support implemented in the floppy controller and brought out to pin 32. On the Model I, if you limit yourself to three drives, you can use the fourth drive select as a side select, as it's conveniently already wired to the correct pin. LDOS and probably other Model I operating systems support this. (Let me emphasize that if any of the drives in a real Model I system is double sided, you can have at most three drives. Some Model I emulators allow you to have a fourth drive, but that drive definitely must be single-sided.)

Pre-made cables and new drives that are commonly available today usually use the PC system. A PC floppy drive cable has a twist in it between the two drive connectors (there are always only two). The twist allows both drives to be jumpered the same way, and allows the PC to control the motors on the two drives separately. Both drives are jumpered for drive select on pin 12 (DS2) and motor control on pin 16 (MOT), but the twist reverses the order of pins 10, 12, 14, and 16 on the first drive, effectively moving its drive select to pin 14 and motor control to pin 10. A PC-style cable won't work properly with a TRS-80, because the TRS-80 controller always sends motor control on pin 16, not pin 10, but it's easy to find ribbon cable and insulation-displacement (IDC) connectors to make up your own straight cable if you need one. Or if you only need to connect one drive, you can plug it into the connector before the twist. Because of this system, new drives are always jumpered for DS2 by default, but they can usually be changed. Occasionally you may find a newer drive that is hardwired for DS2 and has no jumpers; you might be stuck cutting traces and soldering if this happens to you.

Also see the article Utilizing 5.25-inch or 3.5-inch media on your Tandy/Radio Shack computer system on Frank Durda IV's web site. This is mostly about replacing 8-inch drives with 5.25-inch or 3.5-inch drives, but has some other useful information too.

People sometimes also ask about the other internal jumpers in TRS-80 floppy drives. The exact jumpers that are present vary depending on the drive manufacturer, but here are some typical settings. MX or MUX should be open (off); it causes the drive to ignore drive-select and always respond. HM should be closed (on); it causes the heads to load when the drive motor turns on. HS should be open (off); it causes the heads to load only when the drive is selected (mutually exclusive with HM).


[20] What about using high density (1.2MB 5.25-inch or 1.44MB 3.25-inch) drives on a TRS-80?

There are two things you might want to do: (1) treat the drive as single/double density, or (2) use the drive's high density capability with a TRS-80 floppy controller that was designed for 8-inch drives, if you have one.

(1) Both high density and double density 3.5-inch drives spin at 300 RPM like a double density 5.25 drive, and 3.5-inch double density uses the same data rate as 5.25-inch double density, so a 3.5-inch drive makes a compatible replacement for a 5.25-inch drive. The 3.5-inch drive will be double sided with 80 tracks per side, which most TRS-80 software can handle. You will have to be sure that the internal jumpers are set correctly, and that there is no confusion about the Disk Change output from the drive (not used on a TRS-80), or the High Density signal (which may have to be wired correctly to make sure the drive uses the correct write current). If you have a drive you'd like to use but don't have documentation on its jumpers, search the Web to see if the drive manufacturer has a Web site that you can get the information from. For example, Teac does. Also be sure to use the appropriate media; see topic [14].

A high-density 5.25-inch drive spins at 360 RPM, not 300 RPM, so it can't be used directly as a replacement for a 300 RPM TRS-80 drive. However, some models of 5.25-inch drive have dual-speed motors and can be jumpered to run at 300 RPM when in double density mode. For example, the common Teac FD55GFR drives can do this. If you have a drive you'd like to use but don't have documentation on its jumpers, search the Web to see if the drive manufacturer has a Web site that you can get the information from. Again you'll have to be careful about cabling the Disk Change and High Density signals. The manufacturer's documentation for your drive should be helpful here.

(2) If your TRS-80 has an 8-inch disk controller, you can try treating a high-density drive as an 8-inch drive. This should more or less work, but I haven't tried it and can't give detailed help. You would have to make an adapter cable from the 50-pin card edge connector to the 34-pin connector on the drive. The CP/M FAQ provides some useful information for making such cable (see Q14 and Q16). A 5.25-inch HD drive spins at 360 RPM just like an 8-inch DD drive, uses the same data rate, and has 80 tracks (vs. 77 for an 8-inch drive), so it makes a compatible replacement. There could be minor issues because 8-inch drives spin continuously and load/unload the heads when active, while 5.25-inch drives always have the heads loaded but are spun down when not active.

A 3.5-inch HD drive spins at only 300 RPM, but does use the same data rate and does have 80 tracks. Some software may tolerate a 3.5-inch HD drive in place of an 8-inch drive, but only the first 5/6 of each track will be used. Formatting may write arbitrary garbage to the remaining 1/6; hopefully this will not be anything that will cause confusion when trying to read the first 5/6, but that can't be guaranteed.

Also see the article Utilizing 5.25-inch or 3.5-inch media on your Tandy/Radio Shack computer system on Frank Durda IV's web site. This is mostly about replacing 8-inch drives with 5.25-inch or 3.5-inch drives.


[21] What about using low density (360KB 5.25-inch or 720KB 3.25-inch) drives on a PC?

Generally this should work fine, but there are a few problems to watch out for:

Check the cabling. A drive pulled out of an old TRS-80 will be expecting drive selection to be handled differently from the PC method; see topic [19].

Set the correct drive type in your BIOS! Both operating systems and TRS-80 emulators need to know the drive type in order to use the correct read/write data rate. There is no way to autodetect this information, so software has to believe the BIOS settings. If they are wrong, reading and writing will fail in odd ways.

Amardeep S. Chana reports: There is a problem in Jeff Vavasour's emulator code (both Model 4 and CoCo II, and their support utilities) that incorrectly operates a 360K DD drive on a HD capable controller. I think what it does is use 300Kbps data rate instead of 250Kbps. You can create disks and read/write to them, but a real TRS-80 can't read them. Disks created on a real TRS-80 won't read on the PC, either. Using a 1.2MB drive does not show this problem. Using a 360K drive on an XT-type controller does not show this problem either. Setting the CMOS type of the 360KB drive to "720K 3.5-inch" also makes the problem go away.


[22] What are some other good on-line references for detailed information about floppy disks and drives?


[23] How do I determine what PDRIVE settings to use for a NEWDOS/80 disk?

This question comes up a lot, but I'm a complete LDOS bigot with no NEWDOS/80 experience, so I'm not equipped to answer it. Here is some information kindly supplied by others:

Answer by Nick Andrew

Let's say you have a diskette, no idea whatsoever how it is formatted. Notes:

a1. set pdrive to double sided single density 10 sectors/track
a2. use zap read sectors 0 through 5
a3. if sector 5 fails, you have a double-density diskette, track 0 SD, go to b1.
a4. read sectors 6 through 10.
a5. if sector 10 fails, you have a single-sided single-density diskette. go to c1.
a6. if sector 10 is identical to sector 0, you have a side-select problem (on a Model I, drive 3 can be single-sided only)
a7. read sectors 11 through 20.
a8. if sector 20 fails, you have a 40 track diskette.
a9. look for the directory track. Look at sector 0 byte 2. Also try disk sectors 170, 340, 400, 800 looking for the 'P' marker on the sector.

b1. set pdrive to DSDD 18 sectors/track
b2. read sectors 0 through 18.
b3. if sector 18 fails, you have a single-sided diskette.
b4. read sectors 19 through 36.
b5. if sector 36 fails, you have a 40 track diskette.
b6. look for the directory track. Look at sector 0 byte 2. Also try disk sectors 170, 340, 400, 612, 720, 800, 1440 looking for the 'P' marker on the sector.

c1. set pdrive to SSSD 10 sectors/track
c2. read sectors 0 through 10.
c3. if sector 10 fails, you have a 40-track diskette.
c4. look for the directory track. Look at sector 0 byte 2. Also try disk sectors 170, 400 looking for the 'P' marker on the sector.

Answer by Phil Ereaut (with corrections from Fred Jan Kraan)

In Newdos the mysterious Pdrives are just information for each drive, such as, No. of tracks, Single or double density, Single or Double sided, and a few other parameters needed by the DOS to interface with that disk on that drive.

The pdrive information can be displayed by the command "Pdrive 0". Unfortunately, this display does not really mean much to anyone who has not read and understood the manual.

The first line of the display may be:

0* TI = CK, TD = E, TC = 39, SPT = 18, TSR = 0, GPL = 2, DDSL = 17, DDGA = 2

This would be Drive 0, 40 Track, 5 Inch, Single sided, Double Density disk. Track 0 is Single Density.

Generally, the settings for standard type disks are much the same, but a few people along the way, used many and varied settings for their GPL, DDSL, etc, which can make it difficult to read if you get one of these disks.

A Newdos Pdrive table is kept on each disk at Track 0, Sector 2. ONLY the table on the SYSTEM disk is used for the drive settings. It has 10 rows of 16 bytes each, from 00 - 9F hex. Each row is the Pdrive values 0 to 9 as shown when a "Pdrive 0" command is done. These are the permanent Pdrive parameters, kept on the SYSTEM disk.

The number of these actually used is dependent on the number of drives in use on the system, and are termed active drive slots. The others are spares, which can be copied to the active drive slots to allow different type of disks to be used in those drives. This is done by using the Pdrive command. Example:

pdrive 0,1=6,A

This command copies the values stored in slot 6 to Slot 1. The ,A causes the change to be made in memory as well as to disk. If ,A is not used, the change is made only on disk and thus does not take effect until the next time you reboot. [Note: information about ,A corrected by Robert Kircher. Thanks.]

New single Pdrive parameters also can be input and saved in the table. Example:

pdrive 0,1,TD=G,DDSL=20 

This command changes the parameters in slot 1 on disk only. Adding the ,A at the end of the command would also make the change in memory.

A Pdrive table is on every disk, but it is only the table on the SYSTEM disk that is used by the System. One use for this table on a NON-SYSTEM disk can be to determine the Pdrives of this particular disk. Usually, on a non system disk, the top Pdrive shown is the Pdrive settings for that disk. (Even though it is not used by the System for that disk) This allows us to read these settings with a machine language program, and display the settings of an unknown disk.

The following contains information about the parameters, and where they are obtained from. It is not necessary to know ALL of this to use Pdrives. A general understanding of the parameters shown in the displayed Pdrive table, and use of some the tables below to interpret the letters, etc., such as, TI = A is all that is required. Some of the settings are as shown in the byte; others use bit mapping of the byte to store the values. Bytes bit mapped are: 02, 07, 0D and 0E, 0F.

The table is set up as shown for row 0 (Shown in Hex). The bytes 02 and 07 contain bits of multiple parameters (02 = TI & TSR, 07 = TI & TD):

00    01    02   03   04    05   06   07   08   09   0a   0b  0c   0d  0e   0f
DDSL Lumps  *    TC   SPT   GPL       *   DDSL DDGA           TSR  - TI -   TD
11    48    10   28    12   02   00   01   11   02   00   00   00  04  00   04

These bytes would be shown in the displayed pdrive table using "Pdrive 0" as follows (Values are displayed in decimal.):

0*  TI = C, TD = E, TC = 40, SPT = 18, TSR = 0, GPL = 2, DDSL = 17, DDGA = 2

This would be a 40 Track, 5 Inch, Single sided, Double Density disk, Percom doubler. Note this cannot be a bootable system disk, as Track 0 is also Double Density. Using "TI=CK" would result in a bootable disk (Model I).

DDSL  = Disk Directory starting lump
Lumps = Total lumps on disk
TC    = Track Count: No of tracks on disk
SPT   = Sectors per Track
SPG   = Sectors per Granule (always 5 in NEWDOS/80, an option in NEWDOS/86 and /90)
GPL   = Granules per Lump
DDGA  = Disk Directory Granule Allocation: No of Granules used by the Directory
TSR   = Track step rate: Speed of stepping between tracks
TI    = Type of Interface, and other required parameters.
TD    = Type of Disk: Size, Density, No of sides

TI (Type of Interface):
primary parameter:     
A = Standard Interface
B = Omnikron
C = Percom Doubler
D = Apparat Disk Controller
E = LNW type

options:
H = 8 Inch drives only. Head settle time enabled
I = Lowest sector on Track is 1 (Model3 Trsdos)(Set by flag M)
J = Track No's start from 1 (Is set by K, TC must be reduced by 1)
K = Track 0 formatted in opposite density to other tracks (Flag J is
    set by flag K.)
L = Two steps between tracks. Allows 40 Track disks to be read on 80
    Track drive
M = Standard Trsdos Model 3 (Flag M sets flag I)

TD (type of drive):
A : 5 inch   Single Density     Single Sided
B : 8 inch   Single Density     Single Sided
C : 5 inch   Single Density     Double Sided
D : 8 inch   Single Density     Double Sided
E : 5 inch   Double Density     Single Sided
F : 8 inch   Double Density     Single Sided
G : 5 inch   Double Density     Double Sided
H : 8 inch   Double Density     Double Sided

SPT (sectors per track):
NEWDOS uses the term "track" to mean "cylinder" -- that is,
for double-sided diskettes, NEWDOS counts sectors on both sides of the
disk as part of the same "track".  Typical sector counts are:
Sides  Density    5 1/4"       8"
  1    Single   SPT = 10   SPT = 17 
  2    Single   SPT = 20   SPT = 34 
  1    Double   SPT = 18   SPT = 26 
  2    Double   SPT = 36   SPT = 52 

NEWDOS/80 checks if a chosen configuration is possible, and prints an error if not. If an error is present, the disk may not be bootable.

And this is how the parameters map onto track 0, sector 2. In memory only the first 10 bytes of entries 0 to 3 are stored.

00 - DDSL
01 - 
02 - TSR (bits 0,1)
     TI  (bit 2: A; bit 2&3: B; bit 4: C; bit -: D; bit 2&4: E; bit 5:M; bit 6:K; bit 7: H) 
03 - TC
04 - SPT
05 - GPL (NEWDOS/86 and /90 use the upper nibble for the SPG (2=D, 3=E, 4=F, 5=0, 6=1, 7=2, ...))
06 - 
07 - TD (bit 0: DD (TD=E,F,G,H); bit 6: DS (=C,D,G,H); bit 7: 8-inch (=B, D, F, H))
     TI (bit 1: J,K; bit 2: L; bit 4: I) 
08 - DDSL
09 - DDGA
0A - always 00
0B - always 00 (NEWDOS/86 and /90 use it for the SPG)
0C - TSR
0D - TI (bit 0: A, bit 1: B, bit 2: C, bit 3: D, bit 4: E, bit 7: H)
0E - TI (bit 0: I, bit 1: J, bit 2: K, bit 3: L, bit 4: M)
0F - TD (bit 0: 8-inch, bit 1: DS, bit 2: DD)

Normally the disk is mapped in Tracks, Sectors, and granules. Newdos uses a different method of disk mapping, using Lumps in place of Tracks. These lumps can overlap tracks, starting on one track and ending on the next track. This can be confusing (only to us; the DOS knows what it's doing), particularly with the directory, which starts on a particular lump, not on a particular track.

In the example shown above: Sectors per Granule = 5 (Standard for Newdos): Gpl = 2. Therefore there are 10 sectors per lump. The Directory starts on lump 17, (DDSL = 17). Therefore the Directory starts on sector 170. As each track has 18 sectors, the Directory starts on Track 9 Sector 8. This does not really worry the average user, as the System does all the work. Only those of us who are silly enough to play around with this stuff really care whether it is tracks, or Lumps, or Doughnuts.

NEWDOS/86 and /90 add another parameter to the PDRIVE table: SPG for Sectors per Granule. The NEWDOS/80 value is always 5, while the other DOSes have a similar parameter with the value 6 for Double Density disks, meaning three Granules per Track-Side (18 sectors). With the SPG set to 6, NEWDOS/86 and /90 can read disks from those DOSes.

There are utilities available which can determine the PDRIVE of a disk, provided the disk can physically be read in the drive. One is DDSD/CMD from The Alternate Source. NEWDOS/86 and /90 have similar functionality built in.

For more NEWDOS/80 information


[24] How do I make a bootable double-density Model I LDOS 5.3.1 system disk from the single-density master disk set?

Here is the procedure that is given in the 5.3.1 documentation from Misosys, with notes added in square brackets.
  1. Boot the LDOS 5.3.1 system disk and issue the command:
            FDUBL (Tandy|Percom)
    
    choosing one of the two parameters depending on the type of adapter present in your machine. Note that FDUBL defaults to the "Tandy" parameter. [If you are doing this procedure on an emulator rather than a real machine, check which type of adapter it is emulating.]

  2. Place a blank disk in drive :1 and issue the command:
            FORMAT :1 (SYSTEM)
    
    and respond to the queries with the desired diskette configuration data.

  3. Move the files from the system disk to the newly formatted diskette with the command:
            BACKUP :0 :1 (SYS,INV)
    
  4. Save your configuration by issuing the command:
            SYSTEM (SYSGEN,DRIVE=1)
    
  5. Install the double density boot file by issuing the command:
            SOLE :1
    
  6. At this point, remove both diskettes then place the double density DOS disk into drive :0. Insert the LDOS diskette #2 [LDOSXTRA] into drive :1 and copy the files from it to drive :0 and re-save the configuration with the commands:
            BACKUP :1 :0 (INV)
            SYSTEM (SYSGEN)
    
  7. Make additional copies of this double density system diskette onto blank diskettes in drive :1 by issuing the commands:
            FORMAT :1 (SYSTEM)
            BACKUP :0 :1
    

[25] What about using 8-inch drives on a PC?

It's surprisingly easy to use an 8-inch drive on a PC. An 8-inch drive looks electrically very similar to a 5.25-inch HD (1.2MB) drive: it spins at 360 RPM, has 77 (vs 80) tracks, and the data rate is the same. The main difference is that 8-inch drives use an older 50-pin version of the Shugart bus, so you will need a 34- to 50-pin adapter. The CP/M FAQ provides some useful information for making such cables, but watch out for the difference between the IBM PC "twisted cable" standard and the original Shugart SA400 34-pin bus. At this writing, Q14 in the CP/M FAQ gives wiring that is right for the old bus but wrong for the IBM PC version. See Q16 for the changes that IBM made. You can also buy a nice pre-made adapter from D-Bit (see http://www.dbit.com/fdadap.html), but I haven't tried these. There could be minor issues because 8-inch drives spin continuously and normally load/unload the heads when active, while 5.25-inch drives always have the heads loaded but are spun down when not active. However, when I tried this, I didn't experience any problems.

As with all floppy drives, the BIOS settings are important. Tell the PC BIOS that your 8-inch drive is a 5.25-inch 1.2MB drive, and it should be happy.

You can also plug an 8-inch drive into a Catweasel card (see topic [16]) using the same type of 34- to 50-pin adapter discussed above. I have one set up this way and working.


[26] How can I read the back of a disk that was written in a flippy drive?

A flippy drive has one head, two write-protect sensors, and two index-hole sensors. You can put an ordinary floppy disk into it with either side up and read/write to that side. To access the other side, you have to remove the disk and turn it over. This is a similar concept to the "flippy disk", but there the disk is special: it has two index holes in the jacket and two write protect notches, so you can put it into an ordinary 1-sided floppy drive with either side up.

If you have a disk that was written in a flippy drive, but you don't have any flippy drives, reading it will be difficult, and writing to it even more difficult. Technically, the index hole signal shouldn't be needed in order to read or write an ordinary floppy disk, only to format it (though the signal may be needed to read or write certain unusual formats). So if you only need to read/write the disk, you might expect to be able to put it in an ordinary drive upside down and have it just work. Unfortunately, this doesn't work on drives and disk controllers made for modern PCs. Modern drives often have circuitry in them that refuses to send any data to the controller unless the drive has seen the index hole go by a few times and can tell that the motor is up to speed. Also, the controller itself may refuse to accept data until it has seen some index pulses.

You also might think of trying to read the back of a flippy using the second head in a regular 2-sided drive. This doesn't work for two reasons. First, the disk is spinning the wrong way, so the stream of clock and data bits comes out in reversed order, and a regular floppy disk controller can't decode it. It's possible to program a Catweasel to decode the reversed data, but the back head in a 2-sided drive is offset inward slightly from the front head, so it cannot be positioned over the data from the first couple of tracks on the back of a flippy. When the head is against the track 0 stop, it's reading track 2 or 3; the lower numbered tracks are unreachable. Because of this problem, my Catweasel Floppy Read/Write Tools don't attempt to decode data from the back of a flippy, but they do have a feature that detects if there is reversed data on the back and prints a message reading "Possibly a flippy disk; check reverse side too".

Here are a few ways to read (and possibly write) the back of a flippy:

(1) The easiest way is to take a hole punch and carefully punch an extra index hole (in both sides of the jacket, but not in the magnetic media!) and an extra write protect notch. The easiest way to see exactly where the holes should go is to take the magnetic media out of an extra disk that you don't mind destroying (so that you can see through the jacket's index hole) and use that as a template.

(2) If you are good with electronics, you may be able to modify a drive to generate fake index pulses. See http://siliconsonic.de/t/flipside.html for one modification idea. Although the page about the modification refers to the Catweasel, a drive modified in this way should work with a standard PC floppy disk controller too. Note that the fake index pulses don't come at the same point in the disk's rotation as the real index pulse would. This should not be a problem unless you are dealing with one of the rare special formats that depends on index pulse position.

(3) If you have a Catweasel and you use my Catweasel Floppy Read/Write Tools, the -h0 flag will let cw2dmk read a disk even if the Catweasel doesn't receive any index pulses. However, you still need to have a drive that will send data to the Catweasel even when the drive doesn't see any index holes. An old, TRS-80 vintage drive should work. A newer model of drive that will work is the Mitsubishi MF504B or MF504C, if you open the drive up and remove the jumper marked RD. Currently dmk2cw doesn't support writing to a disk without using the index hole.


** End of TRS-80 Model I/III/4 FAQ **


Return to top | My home page | My work