Also assembler source listing DIRCODE
DIRlock is Public Domain software, and may be freely copied and
distributed as long as the author's name is not removed from the code or
altered in any way. The author retains copyright.
DIRlock is a utility designed primarily for ADFS. It's purpose is to allow
any directory to be locked in as the root or $ directory. Any * commands
that would normally act upon the $ directory are forced to act upon the
There are four commands for DIRlock:
Forces any directory to become the $ directory.
Re-activates DIRlock if previously turned off.
Turns off DIRlock and allows normal operation of all * commands.
Toggles DIRlock between the on and off states.
For example, say you copied a large suite of programs into a sub directory
of an ADFS disk, and then found that the programs kept issuing the
This would prevent the suite of programs from working unless you
transferred the whole lot into the root $ directory. [This is precisely
the problem experienced with the TBI disks, where the BBC PD menus expect
to be in the root directory, but have been copied into sub-directories due
to the amount that needs to be fitted on each disk].
DIRlock allows you to overcome this problem by issuing the command:
This has the effect of setting the directory 'dirname' up as the root
directory. It works by replacing ANY occurance of the character $ in *
command with $.dirname.
You may set any directory up as the root directory, but you must give it's
full pathname except for the $. prefix.
So to set up the directory;
as the root directory you would type in:
DIRlock will also respond to the
command telling you if is active ($ replacement occurs) or inactive
(normal operation) as well as the current replacement string.
The source assembler (DIRCODE) is also given so that you may chose to
assemble it at a different address, or change the letters used for the