home *** CD-ROM | disk | FTP | other *** search
- NOLIST
- ParentDir MACRO ; 10 Jan 88
- *------------------------------; Start of ParentDir macro.
- NOLIST
- IFEQ NARG-2 ; If <FileLockName> is given, then
- LIST
- ; Get the file lock from <FileLockName>.
- MOVE.L \2,D1
- NOLIST
- ENDC
- IFEQ NARG-1 ; If <FileLockName> is not given, then
- LIST
- MOVE.L D0,D1 ; Use the file lock given in D0.
- NOLIST
- ENDC
- LIST
- CallLib ParentDir,dos ; Call ParentDir.
- ; Save the parent directory lock at the named
- ; location.
- MOVE.L D0,\1
- SECTION BSS_Section,BSS
- CNOP 0,2
- \1:
- DS.L 1 ; This is the location of <ParentDirLockName>.
- SECTION "",CODE
- TST.L D0 ; Make the zero flag indicate if parent dir
- ; was the root.
- *------------------------------; End of ParentDir macro.
- ENDM
- LIST
-