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_SWINumberToString

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

OS_SWINumberToString

(SWI &38)
Entry
R0 SWI number
R1 Pointer to buffer
R2 Buffer length
Exit
R0 Preserved
R1 Preserved
R2 Length of string in buffer

Use

The purpose of this call is to convert a SWI number to a string containing its SWI name.

Notes

The returned string is null-terminated, and starts with an X if the SWI number has bit 17 set.

SWI numbers < &200 have an ‘OS_’ prefix to the main part, and a SWI-dependent end section (which is ‘Undefined’ for unknown OS SWIs).

SWI numbers in the range &100 to &1FF are converted in the form OS_WriteI+"A", or OS_WriteI+23 if the character is not a printable one.

SWI numbers >= &200 are looked for in modules. If a suitable name is found, it is given in the form module_name or module_number, eg. Wimp_Initialise, Wimp_32. If no name is found in the modules, the string ‘User’ is returned.

See also

  • OS_SWINumberFromString
Created on December 4, 2009 14:19:47 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS SWI Calls, OS_SWINumberFromString

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