SMAC
LAC-25 Technical Reference Manual
60
Command:
MCn
-- Macro Call --
Argument:
0 <= n <= 255
This command allows a previously defined macro specified by 'n' to be called like a
subroutine. When this command is used, the current macro being executed is pushed to the macro
stack and execution of macro 'n' begins. If macro 'n' has not been defined, then an error will be
reported. After execution of the defined macro, command execution will continue immediately
after the Macro Call (MC) command. The Macro Call (MC) command can be used any place in a
macro. Macro calls may be nested up to 25 times; however, it is NOT advisable for a macro to c a l l
itself.
Related Commands: RC, UM
Command:
MDn
-- Macro Definition --
Argument:
0 <= n <= 255
This command is used to define a new macro. Any duplication of numbers will simply result
in the loss of the previously defined macro using that number and the loss of the memory that i t
used. The Macro Define (MD) command must be the first command in the command line or an
error will be reported.
Related Commands: RM, TM
Command:
MJn
-- Macro Jump --
Argument:
0 <= n <= 255
This command may be used to "Jump" to a previously defined macro command. Once the
LAC-25 begins executing the new macro, it has no record of how it got there. This means that any
commands that appear after the Macro Jump (MJ) command will not be executed. If there is no
macro defined by the number 'n', an error will be reported. Once the end of the macro is
encountered, macro execution stops (See the Macro Sequence (MS) command). The Macro Jump
command can be used any place in a command string or macro command. It is also acceptable
for
a macro to jump to itself.
Related Commands: MC, MS
Command:
MSn
-- Begin Macro Sequence --
Argument:
0 <= n <= 255
This command will cause macros to be executed sequentially beginning with macro 'n'
until an undefined macro or an End Program (EP) command is encountered. This command can
be used anywhere in a command string or macro command. If the Macro Jump (MJ) or Macro Call
(MC) commands are encountered, macro execution will still continue to execute sequentially.
Related Commands: MC, MJ