The OPATTR operator returns a superset of the information returned by the .TYPE operator, which should be considered obsolete.
The OPATTR operator returns a word value bitmap that describes various attributes of its operand. The return value is 0 if the expression could not be correctly parsed or evaluated, otherwise the bitmap returned is formatted according to the following table:
┌───┬─┬─┬─┬─┬─┬─┬─┬─┬──────────────────────────────────────────────────┐ │A98│7│6│5│4│3│2│1│0│BIT SET IF EXPRESSION │ ├───┼─┼─┼─┼─┼─┼─┼─┼─┼──────────────────────────────────────────────────┤ │ │ │ │ │ │ │ │ │1│Is a Direct-ExpressionType │ ├───┼─┼─┼─┼─┼─┼─┼─┼─┼──────────────────────────────────────────────────┤ │ │ │ │ │ │ │ │1│ │Is a Indirect-ExpressionType, an │ │ │ │ │ │ │ │ │ │ │Indexed-ExpressionType, or a combination of both │ ├───┼─┼─┼─┼─┼─┼─┼─┼─┼──────────────────────────────────────────────────┤ │ │ │ │ │ │ │1│ │ │Is an Immediate-ExpressionType │ ├───┼─┼─┼─┼─┼─┼─┼─┼─┼──────────────────────────────────────────────────┤ │ │ │ │ │ │1│ │ │ │Is an Indirect-ExpressionType │ ├───┼─┼─┼─┼─┼─┼─┼─┼─┼──────────────────────────────────────────────────┤ │ │ │ │ │1│ │ │ │ │Is a Register-ExpressionType │ ├───┼─┼─┼─┼─┼─┼─┼─┼─┼──────────────────────────────────────────────────┤ │ │ │ │1│ │ │ │ │ │Was parsed and evaluated without error (no │ │ │ │ │ │ │ │ │ │ │undefined symbols, etc.) │ ├───┼─┼─┼─┼─┼─┼─┼─┼─┼──────────────────────────────────────────────────┤ │ │ │1│ │ │ │ │ │ │Is relative to the SS Segment-Register │ ├───┼─┼─┼─┼─┼─┼─┼─┼─┼──────────────────────────────────────────────────┤ │ │1│ │ │ │ │ │ │ │Contains an External Reference │ ├───┼─┼─┼─┼─┼─┼─┼─┼─┼──────────────────────────────────────────────────┤ │LLL│ │ │ │ │ │ │ │ │Language encoding (described below) │ └───┴─┴─┴─┴─┴─┴─┴─┴─┴──────────────────────────────────────────────────┘
The LLL field (bits 8, 9, and A) comprise an enumerated value that describes the language attribute assigned to the expression as follows:
000