System Debug Reference Manual (32650-90888)
284 Chapter6
System Debug Command Specifications M-X
VAR
Opens the file macros and executes the first 10 lines from the file, then returns to normal
interactive input.
%cmdebug > usenext 5
Use the next five lines from the current USE file.
%cmdebug > use
USE file "macros" OPEN: 15/76
Displays the current status of open command files. The file macros is opened and
positioned at line 15 out of 76 lines.
%cmdebug > use close
Closes the current open USE file. Note that other nested USE files may still be left open.
Limitations, Restrictions
Command files should be typical unnumbered editor files, ASCII, with a fixed record size
less than 256 bytes. Line numbers are not stripped.
There is currently a limit of five nested USE files.
Command lines that are executed from USE files are placed into the command history
stack. Long USE files often displace all of the current commands in the stack out of
accessible range.
VAR
Defines a user-defined variable.
Syntax
VAR
var_name
[:
var_type
] [=]
var_value
The entire set of currently defined variables can be saved into a binary file for later
restoration. (Refer to the STORE and RESTORE commands.)
Parameters
var_name
The name of the variable that is being defined. Names must begin with an
alphabetic character and are restricted to thirty-two (32) characters,
(characters must be alphanumeric, "_", "'", or "$"). Longer names are
truncated with a warning. Names are case insensitive.
var_type
The type of the variable. The following types are supported:
STR String
BOOL Unsigned 16-bit
U16 Unsigned 16-bit