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_Claim

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

OS_Claim

(SWI &1F)
Entry
R0 Vector number
R1 Pointer to address of claiming routine
R2 Value to be passed in R12 when the routine is called
Exit
R0 Preserved
R1 Preserved
R2 Preserved

Use

The purpose of this call is to add a routine to the list of those that claim a vector.

Notes

This call adds the routine whose address is given in R1 to the list of routines claiming the vector. This becomes the first routine to be used when the vector is called.

Any earlier instances of the same routine are removed. Routines are defined to be the same if the values passed in R0, R1 and R2 are identical. If you wish to add multiple ‘identical’ routines use OS_AddToVector.

The R2 value enables the routine to have a workspace pointer set up in R12 when it is called. If the routine using the vector is in a module (as will often be the case), this pointer will usually be the same as its module workspace pointer.

See also

  • OS_AddToVector
  • OS_CallAVector
  • OS_Release
  • Software Vector Numbers
Revised on November 12, 2009 21:31:36 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: Error Generators, OS SWI Calls, OS_AddToVector, OS_CallAVector, Software Vectors, EventV, Software Vector Numbers, OS_Release, OS_Write0, OS_WriteN, OS_WriteS, Events Introduction

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