Entry | |
---|---|
R0 | 14 (reason code) |
R1 | Pointer to filename |
R2 | Load address if (R3 AND &FF = 0) |
R3 | Bits 0-7 clear to use R2 as load address, else use file’s load address/filetype |
Bit 30 is used by the SaferOSFile extension | |
Bit 31 set to specify the file is code and should be synchronised | |
R4 | Pointer to path variable |
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 a path variable.
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: