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_AddToVector

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

OS_AddToVector

(SWI &47)
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.

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.

This call provides the same functionality of OS_Claim, except that this call does not remove earlier identical instances (i.e. those which have identical workspace and code addresses).

See also

  • OS_CallAVector
  • OS_Claim
  • OS_Release
  • Software Vector Numbers
Revised on November 12, 2009 21:32:20 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: OS SWI Calls, OS_CallAVector, OS_Claim, Software Vectors, Software Vector Numbers, OS_Release, 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