segNameOFFSET

segNameOFFSET arg

The segNameOFFSET macro generates an offset relative to the start of the group to which the user-defined segment segName belongs. It is similar to the OFFSET assembler operator but automatically provides the group name. For this reason, it should be used instead of OFFSET.

Parameters

arg

Specifies a label name or offset value.

Examples

The following example demonstrates the usage of the segNameOFFSET macro:

mv ax,initcodeOFFSET label