Showing changes from revision #4 to #5:
Added | Removed | Changed
Entry | |
---|---|
R0 | 16 (reason code) |
R1 | Pointer to filename |
R2 | Load address if (R3 AND &FF = 0) |
R3 | |
Bit |
|
R5 | Length of buffer at R2 (if R3b30 set and SaferOSFile extension present) |
Exit | |
---|---|
R0 | Object type |
R1 | Preserved |
R2 | Load address |
R3 | Execution address |
R4 | Object length |
R5 | Object attributes |
The purpose of this call is to load a named file, using no path.
An error will be generated if the file is not found, is a directory, no read access, or a bad load address.
If the file is stamped, and loading at load address (R3 AND &FF <> 0) the variable Alias$@LoadType_xxx
will be used, and it is possible that (like OS_FSControl 4) this call may not return.
There are several different reason codes that can be used to load files using the OS_File call. They differ depending on how the path used to find the file.
In addition: