home *** CD-ROM | disk | FTP | other *** search
-
- D.ASM ver 2.7A
- RESTRICTED DIRECTORY LIST PROGRAM
- (revised 06/19/81)
-
- D.COM is a directory list program, which writes
- 4 or 5 entries on a line, separated by colons.
-
- The command contains an internal table of file names,
- which are not to be shown when just "D" is typed.
- (NOTE typing "D *.*" always shows all files)
-
- Why is this useful: A typical CP/M disk contains many
- utility files: ed.com, asm.com, submit.com, etc. When
- you do a directory listing, you typically aren't interested
- in seeing all those files, but rather just the "current"
- or "active" files. This is what "D.COM" can do.
-
- NOTE: Direct CBIOS calls are used for input and output
- in order to avoid echoing of inputted characters.
- This keeps a noisy phone line from causing garbage
- characters in the display.
-
- ===============================================================
-
- Use: D *.* prints all names, 5 across.
-
- D *.ASM prints selected files just like DIR.
-
- D SET builds a table (in D.COM) of all
- names currently on the disk. (see *NOTE).
-
- D SET <DATE> adds the date for printing whenever
- D is called by 'A>D<CR>' with no options.
- If the date field is left blank, it will
- be ignored. Note that the date must be 8
- characters or less (see *NOTE).
-
- D ADD FN.FT adds a name to the table in
- D.COM, so FN.FT won't be listed
- by the 'D' command (see *NOTE).
-
- D DEL FN.FT deletes a name from the table
- in D.COM, so if FN.FT is in the
- directory, it will be listed by 'D'
- (see *NOTE).
-
- D lists the directory 5 across, listing
- only those files NOT in D.COM, as
- put there by 'D SET' or 'D ADD FN.FT'
- command.
-
- *NOTE: the program must write itself back to disk,
- modified, so your disk must not be write protected.
-
- ------------------------------------------------------------
-
- Examples: Suppose your disk has:
- D.COM
- ASM.COM
- ED.COM on it initially.
- LOAD.COM
- DDT.COM
-
- You would type: D SET
- to set these names into the D.COM program.
-
- Typing "D" would then list:
-
- -->New files
- A: ++NONE++
-
- -->Deleted files
- A: ++NONE++
-
- Suppose you ED TEST.ASM, ASM it, and LOAD it.
- Typing D would then list:
-
- -->New files
- A: TEST ASM : TEST BAK : TEST HEX : TEST COM
-
- -->Deleted files
- A: ++NONE++
-
- i.e. it tells you of the "current" files on the disk.
-
- Now, supposing you wanted to add TEST.COM as a "regular"
- file on your disk. Type:
-
- D ADD TEST.COM
-
- Now, typing D will show:
-
- -->New files
- A: TEST ASM : TEST BAK : TEST HEX
-
- -->Deleted files
- A: ++NONE++
-
- i.e. TEST.COM is now considered a "permanent" file.
-
- --------------------------------------------------------------
-
- Now, suppose you accidentally erased ASM.COM from your
- disk. Typing D gives:
-
- -->New files
- A: TEST ASM : TEST BAK : TEST HEX
-
- -->Deleted files
- A: ASM COM
-
- showing you are missing one of the "regular" files.
-
- If, in fact, you didn't want ASM.COM to be on the disk,
- type:
-
- D DEL ASM.COM
-
- which will delete the name from the D.COM table, so ASM.COM
- won't show up as "deleted".
-
- ====================================================================
-
- SPECIAL NOTES FOR REMOTE SYSTEM USE:
-
- If you keep a dedicated copy of this program on each drive of
- your remote system, you can 'dedicate' each copy of this program
- to a drive by filling in the byte at 103H with the drive number.
- This prevents such things as:
-
- A>D B:
- or
- B>A:D
-
- Do this by using the command:
-
- A>D LOK A: to lock to a drive
- or
- A>D LOK to unlock
-
- If the conditional 'NOSYS' is set TRUE, $SYS files in CP/M 2.x
- will be ignored in both directory listings and when the "ADD"
- option is invoked, unless the override char is specified. This
- allows D.COM to be used as a "WHAT'S NEW" program for remote CP/M
- systems, where the $SYS files must not be listed.
-
- Examples:
- A>D *.* S displays everything
- A>D SET S puts ALL files in table
- A>D SET 12/23/80 sets date for reference
- (if you use 'D SET S', you lose the date option..
- ..sorry about that).
-
- If you use this program on a remote system, you will likely
- want to change the commands (ADD, DEL, and SET) for security.
- You will also want to change the $SYS suppress override character.
- You may also want to change the name of the program to make the
- name itself more informative, e.g. "WHATSNEW.COM".
-
- -->IMPORTANT: If you want the program to be 'TAG'ed after every
- D SET (so it cannot be taken by XMODEM), see the note at label
- "WRBACK" for setting the F1 bit in the filename itself.
-
- Note that this program defines its own name for write-back
- purposes under the label "WRBACK".
-
- =====================================================================
-
-
-