RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_Hardware 2

Hardware Abstraction Layer
» Other documentation
» OS_Hardware
» OS_Hardware 2

OS_Hardware 2

(SWI &7A)
Entry
R0 Pointer to device descriptor
R8 2
Exit
- All registers preserved

Use

Declare a new device to the system. If a device with that address is already registered, an attempt will be made to first remove it.

Notes

To remove a device, call OS_Hardware 3.

Instead of calling SWIs, HAL code should use RISCOS_AddDevice to register devices.

Once the device has been added to the system, Service_Hardware 0 will be issued to notify other programs.

See also

  • OS_Hardware
  • OS_Hardware 3
  • RISCOS_AddDevice
  • Service_Hardware 0
Revised on August 15, 2012 13:25:21 by Jeffrey Lee (213) (195.72.173.131)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: OS_Hardware, Service_Hardware 0, OS_Hardware 3

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 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