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_Byte 2

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_Byte
» OS_Byte 2

OS_Byte 2

(SWI &06)
Entry
R0 2
R1 Stream selection
Exit
R0 Preserved
R1 Value before being overwritten
R2 Corrupted

Use

The purpose of this call is to select the device from which all subsequent input is taken by OS_ReadC.

Notes

On exit only 0 or 1 can be returned, so 0 may also mean 2. The state of this variable can be read with OS_Byte 177.

If Exec is enabled (see OS_Byte 198) then the Exec file handle is used as the current input stream.

See also

  • Input Streams
  • OS_Byte
  • OS_Byte 177
  • OS_Byte 198
  • OS_ReadC
Created on November 11, 2009 13:08:34 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS_Byte, Input Streams, OS_Byte 177, OS_Byte 156

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