HDFORMAT.EXE
One of the more useful features of this emulator is its virtual hard drive support under LS-DOS (Model 4 mode) and LDOS (Model 3 mode). The virtual hard drive used by the emulator is actually an MS-DOS file (HARDDISK.HDV) containing the hard disk image (like normal virtual disk files, but on a larger scale). Like a real hard drive, the emulator's virtual hard drive must be formatted before it can be used. For this purpose, the emulator package includes HDFORMAT.EXE, an MS-DOS utility that performs the equivalent of both a low and high-level format.
The easiest way to set up a virtual hard drive is to run HDFORMAT with no parameters. From an MS-DOS prompt (before you enter the emulator), type:
HDFORMAT
and press ENTER. HDFORMAT will automatically create a hard disk image file that is capable of storing around 5 megabytes. The image file will start out fairly small, but will grow in size as you add TRS-80 files to it.
Why doesn't HDFORMAT create an image file with the maximum 13 megabytes of capacity? The reason is simple: the larger the hard drive, the greater the wasted space per file. On a 13 megabyte TRS-80 hard drive, every file will take up at least 8K, regardless of its actual size. This can lead to a great deal of wasted space and can cause the hard disk image file to become unnecessarily large. In addition, all TRS-80 operating systems limit the number of files per data disk to 254. This means that people with large hard drives sometimes found themselves with no more file slots, even though they still had plenty of free space on the drive. Of course, there were solutions to these problems, such as the MISOSYS DiskDISK program, which created virtual disk files on the TRS-80 hard drive (much the same way that the emulator creates virtual disk files on the PC hard drive); but if you aren't using any special software to manage your hard drive use, 5 megabytes is a good compromise between capacity and efficiency.
If you want to create a larger hard disk image file, you will need to run HDFORMAT with a command line option:
| /? | Displays a brief help screen. |
| /V | Specifies the volume label to use when formatting the hard disk (the default is "HARDDISK"). |
| /M | Specifies the capacity of the hard disk image file (from 5 to 13, to the nearest megabyte) |
As an example, if you want to create a 13 megabyte hard drive with a volume label of "MYDRIVE", you should use this command line:
HDFORMAT /M13 /V:MYDRIVE
IMPORTANT NOTE: HDFORMAT is intended to be used only once, to create and format your hard disk image file. If you use it on a hard disk image that already contains files, all of those files will be erased. After you create the initial hard disk image, it might be a good idea to rename HDFORMAT.EXE, or remove it from your emulator directory altogether, just to make sure that it can't be accidentally invoked.
HARD/CMD
The first utility on UTILITY.DSK, HARD/CMD, is a hard disk driver that works under either LS-DOS (Model 4 mode) or LDOS (Model 3 mode). It provides the linkage between the operating system and the hard drive emulation. As an added bonus, it also sets the operating system time and date.
To install the driver, make sure UTILITY.DSK is mounted in one of the virtual drives. Then type:
HARD
at the "LS-DOS Ready" or "LDOS Ready" prompt and press ENTER. The hard disk driver will install itself and map the virtual hard drive as drive 4. Remember that before you install the hard disk driver, you must have set up the hard disk image file using HDFORMAT (see above for details). Also remember that HARD/CMD works only under LS-DOS and LDOS; it has not been tested to work under any other operating system.
HARD/CMD has two possible command line options. Any options should be enclosed in parentheses, and if you use more than one option, separate them with commas, like this:
HARD (DRIVE=5,QUIET)
Here are the possible options:
| DRIVE | Specifies the desired hard drive number (the default is 4) |
| QUIET | Hides all messages unless an error is encountered (this is useful if you run HARD/CMD as an AUTO command -- see below) |
Unlike HDFORMAT (described above), HARD/CMD should be run every time you want to use the virtual hard drive with LS-DOS or LDOS. HARD/CMD cannot be SYSGENed, but it can be run as an AUTO command. From the "LS-DOS Ready" or "LDOS Ready" prompt, type:
AUTO HARD (QUIET)
and press ENTER. From now on, whenever you start up LS-DOS or LDOS, the hard disk driver will automatically be installed.
CLOCKSET/CMD
The second utility on UTILITY.DSK is CLOCKSET/CMD, which will set the TRS-80 time and date. This program works with all TRS-80 Model 4 and Model 3 operating systems. Since HARD/CMD (described above) also sets the time and date, CLOCKSET/CMD is primarily useful if you don't want to use a virtual hard drive, or if you use an operating system other than LS-DOS or LDOS.
CLOCKSET/CMD has only one command line option:
QUIET - Hides all messages unless an error occurs (this is useful if you run CLOCKSET/CMD as an AUTO command -- see below)
If you use the QUIET option, it should be enclosed in parentheses, like this:
CLOCKSET (QUIET)
CLOCKSET/CMD needs to be run every time you start up your operating system. It cannot be SYSGENed, but it can be run as an AUTO command. Under most operating systems, if you type:
AUTO CLOCKSET (QUIET)
from the "DOS Ready" prompt, CLOCKSET/CMD will run automatically whenever your operating system starts up.
MOUSE/CMD
The third utility on UTILITY.DSK is MOUSE/CMD, a Model 4 mouse driver that converts information from a PC mouse (serial or bus version) to a format that Model 4 mouse-aware programs can understand. Very few Model 4 programs use a mouse, but the ones that do (such as MDRAW, the freeware high resolution drawing program) can be very useful and fun.
MOUSE/CMD has only one command line option:
REMOVE - Disables the mouse driver and removes it from memory (if possible)
If you use the REMOVE option, it should be enclosed in parentheses, like this:
MOUSE (REMOVE)