=> R0 = 12,14,16 or 255 (reason code)
R1 = pointer to filename
if R3 AND &FF = 0 :
R2 = load address
else :
load at file's load address
if R3 b31 set then the file is code and will be synchronised
if R0 = 255 : use File$Path
if R0 = 12 : R4 = pointer to path string
if R0 = 14 : R4 = pointer to path variable
if R0 = 16 : use no path
<= R0 = object type
R2 = load address
R3 = exec address
R4 = object length
R5 = object attributes
This SWI is used to load a named file. An error will be generated if not found, is 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. The PRMs are incorrect in their statement that this is an error.
The flag in b31 of R3 is not supported (or necessary) before RO3.70.
|
|
|