Description

The .TYPE operator is considered obsolete. The OPATTR operator should be used instead.

The .TYPE operator returns a byte 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:

┌─┬─┬─┬─┬─┬─┬─┬─┬──────────────────────────────────────────────────┐
│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                    │
└─┴─┴─┴─┴─┴─┴─┴─┴──────────────────────────────────────────────────┘


[Back: Syntax]
[Next: Examples]