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_GSInit

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

OS_GSInit

(SWI &25)
Entry
R0 String to translate
R2 Flags
Exit
R0 Value for OS_GSRead
R1 1^st^ non-blank character
R2 Value for OS_GSRead

Use

The purpose of this call is to initialise registers for use by OS_GSRead.

Notes

OS_GSInit is one of the string routines which are used by the operating system
CLI to process text strings.

This SWI is followed by repeated calls to OS_Read.

One of the advantages of these routines is that they enable the use the character ‘|’ to introduce control characters which would otherwise be difficult to enter directly from the keyboard.

OS_GSInit also returns the first non-blank character in the string. However, this is not
necessarily the same as the output from the first OS_GSRead, since OS_GSInit doesn’t
perform any expansion.

See also

  • GS Flags
  • GS Translations
  • OS_GSRead
  • OS_GSTrans
Created on November 28, 2009 21:12:32 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS SWI Calls, GS Flags, OS_GSRead, GS Translations, OS_GSTrans

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