SMAC
LAC-25 Technical Reference Manual
58
4.7 Macro Commands
Command instructions can be entered and executed immediately, but the LAC-25 also has
the capability of using commands to form other commands called "macros". These macros are
stored in the nonvolatile RAM (NVRAM) and can be executed automatically. Macros are created
by stringing together one or more commands (with arguments), separated by commas, and
indicating where they are to be stored. It should be noted that macros can use indirect as well as
direct arguments. The LAC-25 allows for the creation of 256 macros consisting of a total of nearly
2,300 command instructions. Macro calls via the Macro Call (MC) command or the interrupt
system, may be nested up to 25 calls deep.
An example of a macro might be...
>MD5,SV1000000,SA10000,MA25000,GO,WS100<CR>
Once this command line is entered, it will become the definition for macro 5. When macro
5 is used via the Macro Call (MC), Macro Sequence (MS) or Macro Jump (MJ) commands, the
commands contained within the macro will be executed automatically.
There are a few necessary restrictions when creating macros. When using the Macro Define
(MD) command, it must be placed first in the command line and it may be used only once. This
also implies that it cannot be used as part of a macro. The Reset Macro (RM) command is similar
in that it too cannot be used as part of a macro.
Another feature of the LAC-25 is the ability to automatically execute macro "0" on power-
up or after a Reset (RT) command. If macro "0" is not defined, the user will receive the ">" prompt,
and the LAC-25 will wait for manual input.
Command:
DVn
-- Disable Interrupt Vector 'n' --
Argument:
0 <= n <= 31
This command disables interrupt vector 'n'. This prevents any possibility of an interrupt
being caused by that source.
Related Commands: EV, LV
Command:
EVn
-- Enable Interrupt Vector 'n' --
Argument:
0 <= n <= 31
This command enables interrupt vector 'n'. This allows the possibility of an interrupt being
caused by that source.
Related Commands: DV, LV