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_CLI

OS SWI Calls
» OS_CLI

OS_CLI

(SWI &05)
Entry
R0 Pointer to string terminated by Null, Linefeed or Return
Exit
R0 Preserved

Use

The purpose of this call is to process a command, as if typed in the CLI.

Notes

When it is called, it performs the following actions:

  • Checks the stack space, if there’s not enough free memory to establish the stack the error ‘No room for supervisor stack’ is returned.
  • Checks the command line length. Prior to RISC OS 4, a CLI-command has to be less than 257 bytes long, including the terminator. If it’s longer, the call is ignored without returning an error. Later OS versions increase the limit to 1024 bytes including terminator.
  • Then execute the command as any other *Command typed in CLI
Revised on November 11, 2017 03:15:46 by Alan Robertson (52) (49.192.18.196)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: OS_Module 23, OS SWI Calls, OS_ChangeRedirection, Software Vector Numbers, OS_FSControl 11, OS_FSControl 19, Introduction To *Commands, FileSwitch Use Of File Types, Error Generators, 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