| Introduction | MTB Statements | File System | Compiler | Applications | Reference Guide | Index |
Consider the "shell to DOS" feature. This feature is invoked via the following hex write control:
"@0E0E0A00@"
However, with the advent of DDLs, we can create a mnemonic for this purpose. In fact, Signature Systems has done just that. The following mnemonic is available:
(Shell to DOS="DOS-command")
Notice that this mnemonic contains one argument, a string containing a DOS command. If this argument contains a null value, the program will shell to DOS without executing a DOS command.
In order for this mnemonic to work, we must add a definition to the driver library. The following source lines show the definition for this mnemonic:
[Shell to DOS=ARG1$]
Print "@0E0E0A00@"
Print ARG1$
Notice the format for the argument. Mnemonic arguments are written as ARG1$ through ARG32$ (for strings) or ARG1 through ARG32 (for numerics). Arguments are included in the first line of the mnemonic definition as shown above.
As before, this definition must be processed by the MNEMGEN mnemonic code generator program.