I have read in masm that there is a operator call THIS but have not seen any examples of its usage. Does anybody have one?
Thank you for your help.
Out of MASM32 help.
THIS
Syntax: THIS qualifiedtype
Description
Returns an operand of <qualifiedtype> with offset and segment values equal to the current location-counter value. THIS can be used with EQU or = to create labels and variables. THIS NEAR is equivalent to $.
These two lines are equivalent:
tag1 EQU THIS BYTE
tag1 LABEL BYTE
The <qualifiedtype> can be any qualified type.
Thank you