Lexical operator for obtaining the integer register number
associated with a symbol.
Format
%IREG (symbol)
1 – Argument
symbol
The single argument, of type string, specifies a symbol that may
or may not be currently defined as an integer register symbol.
2 – Description
%IREG returns the decimal number of the integer register when
the specified symbol is defined as an integer register symbol.
Otherwise, %IREG returns 32.
3 – Example
; Is SRC_REG the same as SP?
.IF EQ, <%IREG(SRC_REG)>, <%IREG(SP)>
If SRC_REG has been defined as integer register R16, the
statements appear as follows after lexical processing:
; Is SRC_REG the same as SP?
.IF EQ, <16>, <30>