'=' Directive on External Label Causes Error A2052

ID Number: Q26655

1.27 3.00 3.01 4.00 5.00

MS-DOS

Problem:

The MASM documentation indicates that the '=' directive may be used

with expressions that evaluate to an address. If the address refers to

an external label, the error A2052 is issued.

Response:

Using the '=' directive with external labels is not allowed in

MASM. The address of an external label is not known at assembly time

and therefore cannot be used with the '=' directive, which is

evaluated at assembly time.