Microsoft KB Archive/26655

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:20, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q26655 to Microsoft KB Archive/26655 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

‘=’ 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.