I$ChgDir
From NitrOS-9
Change Directory | Changes the working directory of a process to a directory specified by a pathlist. |
OS9 I$ChgDir 103F 86 |
Entry Conditions
A access mode
X address of the pathlist
Exit Conditions
X updated past pathlist
Error Output
CC carry set on error
B error code, if any
Additional Information
- If the access mode is read, write, or update, NitrOS-9 changes the current data directory. If the access mode is execute, NitrOS-9 changes the current execution directory.
- The calling process must have read access to the directory specified (public read if the directory is not owned by the calling process).
- The access modes are:
0 = Use any special device capabilities
1 = Read only
2 = Write only
3 = Update (read and write)