RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_File 255

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_File
» OS_File 255

OS_ File 255

(SWI &08)
Entry
R0 16 (reason code)
R1 Pointer to filename
R2 Load address if (R3 AND &FF = 0)
R3 0 to use load address at R2, or
Bit 31 set to specify the file is code and will be synchronised, otherwise
Load file using file’s load address
Exit
R0 Object type
R1 Preserved
R2 Load address
R3 Execution address
R4 Object length
R5 Object attributes

Use

The purpose of this call is to load a named file, using File$Path variable.

Notes

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:

  • R3 bit 31 is not supported (or necessary) before RISC OS 3.70.
  • If filetype is code (&F95), then it will be automatically synchronised, but not before RISC OS 3.7.

See also

  • Execution address
  • Load address
  • Object attributes
  • Object type
  • OS_File
  • OS_File 12
  • OS_File 14
  • OS_File 16
  • OS_FSControl 4
Created on November 10, 2009 21:48:11 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS_File, OS_File 12, OS_File 14, OS_File 16

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys