The SWI module provides *commands relating to SWIs.
The commands are:
*SWIName
--------
Syntax: *SWIName <SWI number>
Returns the name of the SWI given.
eg.
*SWIName &400C7
*SWINumber
----------
Syntax: *SWINumber <SWI name>
Returns the number for the SWI given.
Note that the SwiName is case sensitive.
eg.
*SWINumber OS_Write0
*ModInfo
--------
Syntax: *ModInfo <Module name>
Lists the SWIs provided by the named module.
eg.
*ModInfo PDriver
Additional:
*ModInfo ?
Lists the modules present.
*Swi/*Sys
---------
Syntax: *SWI <SWI name/number> [registers...]
(*SYS is exactly equivalent)
Performs the given SWI.
The SWI name/number can be either the string version enclosed in quotes, or the hexnumber preceded with &, or the decimal number.
You can also specify upto 8 register's values. A pointer to a string can be included by putting the string in quotes. BEWARE - if you don't close all the quotes, your computer will die horribly (probably). I haven't put in any checking for this because I couldn't be bothered.