80-Bus News

  

March–April 1983 · Volume 2 · Issue 2

Page 15 of 55

default USER area on the final default drive using the DFU command). Further, this hierarchical search extends through the CP/M USER areas. Suppose I was on drive B:, USER 2, and PEN was stored on drive A:, USER 0; then the search sequence would start with the default (or specified) drive and USER, if the search failed, then on to the default (or specified) drive, USER 0, if that failed then on to the final CCPZ default, USER 0. Only then, if the search failed would any error message be displayed. Note also that the hierarchical search does not take place on the command extension, in this instance the 80BUS6-2.PEN. Having found PEN, the whole lot resets to the original conditions. So PEN searches for 80BUS6-2.PEN on the original default. If PEN can’t find what it’s looking for then PEN says so. So the important thing to note is that CCPZ only does the hierarchical bit when searching for the command file, what follows is not the business of CCPZ, it’s up to the command file to decide where it gets the command extension from.

Another nice little tweek is the prompt itself, when you change USER area, the new area number is displayed in the prompt. So that you can see at a glance that:

B12>

you are on default drive B: USER area 12. Nice isn’t it. Yet another comes to mind, the ERA command, when you erase a file(s) the ERA command displays what it has erased. (Even better if it stopped after displaying the list and asked you if you meant it, but it doesn’t.) Well you at least know what you erased, and if you find one you didn’t mean, then a little utility I have called UNERA does, guess what?

As to the commands, well all the original CP/M commands are there of course, but some work differently:

Command:DIR
Function:To display a listing of the names of the files on the disk.
Forms:DIR <afn>Displays $DIR files
DIR <afn> SDisplays $SYS files
DIR <afn> ADisplays both $DIR and $SYS files
Note:If the directory is scanned for a name and no such name exists on the disk the message ‘No Files’ will be displayed. However, if the search was for $DIR files and the file existed as a $SYS file or vice versa, then no message will be displayed indicating that the file does exist but the file attribute is not as specified.

Command:ERA
Function:To erase the specified R/W file from the directory.
Forms:ERA <afn>Erase both $DIR and $SYS files from disk.
Notes:The name(s) of the file(s) erased is displayed as a cross check.

Command:LIST
Function:To print the specified file to the CP/M LST: device.
Forms:LIST <ufn>Print the file (no paging).
Notes:The file will be printed regardless of the $DIR or $SYS attribute.

Command:TYPE
Function:To print the specified file to the CP/M CON: device.
Forms:TYPE <ufn>Type the file with the paging default.
TYPE <ufn> PType the file with the paging default negated.
Notes:Any character will continue typing at the end of a page. ^C will terminate typing, ^P and ^S will work as usual.
Page 15 of 55