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_CallASWIR12

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

OS_CallASWIR12

(SWI &71)
Entry
R0–R9 As required for target SWI
R12 Target SWI number
Exit
R0–R9 As defined for target SWI
R12 Preserved

Use

The purpose of this call, is to call a run-time determined SWI.

Notes

This call is identical to OS_CallASWI, except that it uses R12 to specify the target SWI. This may be more convenient in some environments. In particular under APCS-R, R10 is the stack limit pointer, which must be preserved at all times.

If a SWI called using OS_CallASWI were to abort or generate an error the run-time library would usually examine R10 and decide that it had no stack to handle the abort or error. Therefore APCS-R libraries must use OS_CallASWIR12 (R12 being a scratch register under APCS-R).

The CallASWI module provides this functionality for versions of RISC OS 3.70 or earlier.

See also

  • OS_BreakPt
  • OS_CallASWI
  • OS_CallAVector
Revised on November 26, 2010 12:25:15 by Trevor Johnson (329)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: OS SWI Calls, OS_CallASWI

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