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_Exit

OS SWI Calls
» OS_Exit

OS_Exit

(SWI &11)
Entry
R0 Pointer to error block
R1 “ABEX” (&58454241) If Return code and error block provided
R2 Return code
Exit
Never returns

Use

The purpose of this call is to pass control over to the most recent exit handler.

Notes

If R1 <> “ABEX”, or R0 does not appear to be a valid error pointer, then Sys$ReturnCode is set to 0.

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 the error pointer given in R0 is passed to OS_GenerateError. This has the effect of causing the Error Handler to be invoked, rather than the exit handler.

See also

  • Exit Handler
  • SWI Error Block
  • OS_ExitAndDie
Revised on June 12, 2018 00:23:00 by Jeffrey Lee (213) (86.137.26.134)
Edit | Back in time (4 revisions) | See changes | History | Views: Print | Source | Linked from: Message_Quit, *WimpTask, OS SWI Calls, Exit Handler, OS_BreakPt, OS_ChangeRedirection, OS_ExitAndDie, *Quit, OS_Module 0, Wimp_CloseDown, SWI Error Block, File formats: Utility, File formats: Relocatable Module, Module Start Code, System Variables, OS_SetEnv, OS SWI Calls (français)

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