RISC OS Open

RISC OS  OPEN


A fast and easily customised operating system for devices using ARM processor cores.

Documentation: OS_Find

Programmer’s Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_Find

OS_ Find

(SWI &0D)

Entry
R0 Reason code, and path bits if reason <> 0
R1 Filename for opening files, handle otherwise
R2 Pathname, if ‘path used’ is 1 or 2

Exit
File handle, if opening

Use

The purpose of this call is to either open or close files.

Reason Codes


R0 Action
&00 Closes file R1, or all files if R1 = 0
&40 Open existing file with read-only access
&80 Create empty file with read/write access
&C0 Open existing file with read/write access

See also

   .