System Debug Reference Manual (32650-90888)
Chapter 5 195
System Debug Command Specifications Fx-LOG
LOCL[IST]
Examples
$nmdat > loc temp a.c000243c
Define local variable temp to be the address a.c000243c. By default, this variable is of type
LPTR (long pointer), based on the value.
$nmdebug > loc count=1c
Define local variable count to be the value 1c.
$nmdebug > loc s1:str="this is a string"
Define local variable s1 to be of type STR (string) and assign the value "this is a string".
nmdat > mac sum(p1 p2) {loc temp p1+p2; loclist; ret temp}
nmdat > wl sum (1 2)
var temp : U16 = $3
var loc p2 : U16 = $2
var loc p1 : U16 = $1
$3
This example shows how the LOCLIST command, when executed as part of a macro body,
displays all currently defined local variables. Note that the macro parameters appear as
local variables. Local variables are always listed in the reverse order that they were
created.
Limitations, Restrictions
none
LOCL[IST]
Lists the local variables that are defined with a macro.
Syntax
LOCL[IST]
[pattern]
Parameters
pattern The name of the local variable(s) to be listed.
This parameter can be specified with wildcards or with a full regular
expression. Refer to appendix A for additional information about pattern
matching and regular expressions.
The following wildcards are supported:
@ Matches any character(s).
? Matches any alphabetic character.