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>offset offset of expression masm operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
OFFSET           Offset of Expression                           MASM Operator

  OFFSET expression

    Returns the number of bytes between the expression and the beginning
    of the segment it is defined in.

       Notes:     Expression can be a label, segment name, variable, or
                  other symbol.

                  In order to generate valid offsets when accessing
                  variables in groups or segments, use the segment-
                  override operator (':') to force OFFSET to calculate the
                  offset relative to the start of the group or segment.

See Also: SIZE

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