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.
Return Expression Attributes
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   TYPE expression
 
  See also: .TYPE, SIZEOF, LENGTHOF, WIDTH, PTR, MACRO, STRUCT
 
  Description:
 
     The TYPE operator returns a value and size and distance attributes
     appropriate to <expression>. You can use the constant returned by
     TYPE directly or use the attributes returned by TYPE. For example,
     you can use the returned attribute to specify a type for PTR.
 
     <expression>    Returns
 
     Variable        Number of bytes allocated for each element
     Structure       Total number of bytes in the structure
     Constant        0
     Code label      Distance
     Register        Size of register in bytes
                                    -♦-