MACRO

From ICE Enterprises
Jump to navigation Jump to search

creates, translates, and/or lists a macro

<name>       Name of macro
<function>   Function to perform (LIST,TRANS,CREATE)
<window>     Number of lines around current macro pointer to list

CREATE prompts the user for a few lines of input for quick execution of a
few lines of code.  This is stored on disk as a user macro for subsequent
execution.

TRANS simply translates a macro to check for syntax and control flow errors.

LIST lists a macro.  The list format is controlled by <window>:
  < 0	- displays macro source code (the macro.txt file)
  = 0	- displays entire macro in translated form
  > 0	- displays <window> lines around current macro pointer, in
          translated form

When you are in normal mode, LIST will show you the translated macro source
code by default.

In macro Suspend mode, LIST will show you the current macro in its translated
form with <window> lines centered at the current pointer.

The translated format of a macro has all commands and arguments in uppercase,
white space replaced by commas, and one-line IF's expanded.

The translated format also shows a pointer to the next command to be executed
(either by a STEP or a GO), which can be useful during debugging.

See Also: GO, PAUSE, STEP