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

Page "Drag A Sprite" does not exist. Please create it now, or hit the "back" button in your browser.

OS_ExitAndDie

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

OS_ExitAndDie

(SWI &50)
Entry
R0 Pointer to error block
R1 “ABEX” (&58454241) If Return code
R2 Return code
R3 Pointer to module name
Exit
Never returns

Use

The purpose of this call is to pass control over to the most recent exit handler, and kill the module as pass by R3.

Notes

This SWI provides the same functionality as OS_Exit but in addition kills the module as passed by R3.

If R1 = “ABEX”, and 0 \<= R2 \<= Sys$RCLimit, then Sys$ReturnCode is set to R2.

If R1 = “ABEX” and R2 is outside this range, then Sys$ReturnCode is still set to R2, and a garbled error message issued (0 is used at the pointer to an error block). This is a very long lived OS bug.

See also

  • Exit Handler
  • SWI Error Block
  • OS_Exit
Revised on November 26, 2010 12:41:23 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_Exit, Exit Handler, OS_Module 0

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