Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>type return size of type masm operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TYPE             Return Size of Type                            MASM Operator

  TYPE expression

    Returns the number of bytes for a variable, while returning 0FFFFh for
    a NEAR label and 0FFFEh for a FAR label.

       Notes:     The values returned are the same values that are
                  displayed in the description for the PTR operator. Note
                  that the number of bytes returned is the number of bytes
                  occupied by the type of expression.  Therefore, a word
                  variable will always return 2, even if it is duplicated
                  10 times.

See Also: PTR

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson