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

Page "CmpV" does not exist. Please create it now, or hit the "back" button in your browser.

OS_CLI

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» 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
Created on November 8, 2009 14:38:04 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS_Module 23, Error Generators, FileSwitch Use Of File Types, OS SWI Calls, OS_ChangeRedirection, Software Vector Numbers, OS_FSControl 11, OS_FSControl 19, *Commands Introduction

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