News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Does anybody have an example of using the THIS operator

Started by StillLearningMasm, May 13, 2019, 10:54:26 AM

Previous topic - Next topic

StillLearningMasm

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.

hutch--

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.