Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
OPATTR Operator
 Example                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   OPATTR expression
 
            .TYPE expression
 
  See also: TYPE, MACRO
 
  Description:
 
     The OPATTR operator returns a one-word constant defining the mode
     and scope of expression. If <expression> is not valid or is forward-
     referenced, OPATTR returns a 0. If <expression> is valid, a
     nonrelocatable word is returned. The .TYPE operator returns only the
     low byte (bits 0-7) of the OPATTR operator and is included for
     compatibility with previous versions of the assembler.
 
     Bit          Set If
     Position     <expression>
 
     0            References a code label
     1            Is a memory expression or has a relocatable data
                  label
     2            Is an immediate expression
     3            Uses direct memory addressing
     4            Is a register expression
     5            References no undefined symbols and is without error
     6            Is an SS-relative memory expression
     7            References an external label
     8-10         Language type:
 
                  Bits     Language
 
                  000      No language type
                  001      C
                  010      SYSCALL
                  011      STDCALL
                  100      Pascal
                  101      FORTRAN
                  110      Basic
 
     All other bits (11-15) are undefined and reserved for future expansion.
                                    -♦-