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_GenerateError

OS SWI Calls
» OS_GenerateError

OS_GenerateError

(SWI &2B)
Entry
R0 Pointer to error block
Exit
R0 Only returns (with V flag on) if X was set

Use

The purpose of this call is to generate an error and invoke the error handler.

Notes

The X form may appear to be completely useless as it is effectively a no-op!

However, it has at least 3 uses

  1. Terminated string conversion in BASIC
  2. Detecting whether OS_CallASWI is available by calling OS_GenerateError via OS_CallASWI and seeing what comes back in R0
  3. Force a callback to occur

See also

  • OS_CallASWI
  • SWI Error Block
Revised on December 16, 2017 09:20:22 by Jeffrey Lee (213) (86.139.99.187)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: OS_AbortTrap, WindowManager General Principles, OS SWI Calls, Software Vector Numbers, OS_ExitAndDie, OS_FSControl 2, Introduction To SWIs, Error Handler, SWI Error Block, *Error, Exception Registers Block, Econet OS Procedure Number, SeriousErrorV, OS_Exit, OS SWI Calls (français), Undefined Instruction Handler, Prefetch Abort Handler, Data Abort Handler, Address Exception Handler

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