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>$ location counter operand masm operand</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
$                Location Counter Operand                        MASM Operand

  $

    This special symbol represents the current location counter. The
    location counter is the current offset within the current segment
    during assembly.

       Notes:     This operand has the same attributes as a near label.

                  The location counter is an address that is incremented
                  to reflect the current address as each statement in the
                  source file is assembled.

  -------------------------------- Example ---------------------------------

           helpMessage    DB   'This is help for the program'
           helpLength     =    $ - helpMessage

    After these 2 lines are assembled, the symbol 'helpLength' will be
    equal to the length of the help message.

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