This the multi-page printable view of this section.Click here to print.

Return to the regular view of this page.

OSCLI

Pass string to the CLI

Table of Contents

Function AddressVectorDescription
OSCLI FFF7208Pass string to the CLI

This call provides the machine code user with a convenient method of performing any of the * commands that the system provides from Basic.

The command required is placed in a string as normal text terminated by a CR character and this call is made with the address in X & Y.

If the string passed to the CLI is not terminated by a carriage return within 255 bytes this routine has undefined effects.

The OS provides a default set of commands: (Note these have * in them but that is not necessary when passing the command to OSCLI)

Command Action Available on
BBC Master Electron
*. treated as *CAT command X X X
*/ treated as *RUN command X X X
*BASIC Select BASIC as current language X X X
*CAT issue catalogue request to filing system X X X
*CODE passed to user vector X X X
*EXEC select text file as input stream X X X
*FX issue OSBYTE call, no returns possible X X X
*HELP issue page ROM service call 9 X X X
*KEY take rest of line as text for soft key X X X
*LINE passed to user vector X X X
*LOAD issue load request to filing system X X X
*MOTOR open/close cassette motor relay X X X
*OPT issue option request to filing system X X X
*ROM select ROM filing system X X X
*SAVE issue save request to filing system X X X
*SPOOL include text file in output stream X X X
*TAPE select tape filing system X X X
*TV TV configuration X X

These commands may be abbreviated by taking the first few letters and terminating with a ‘.’ character. Parameters may be passed in the text following the command.

Other unrecognised commands are first offered to paged ROMs and are then offered to the currently selected filing system via the filing system control vector.