Microsoft KB Archive/26656

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

Error A2065:Label Cannot Have Segment Override ID Number: Q26656

4.00 5.00 MS-DOS buglist4.00 fixlist5.00

Problem: The error ‘A2065:Label cannot have segment override’ is given for the construct ‘fred dd far ptr ?’. Under MASM Version 4.00, the assembler did not generate an error message.

Response: The FAR type for the PTR operator should not be used in a data declaration. The type DWORD can replace FAR type to correct the declaration. MASM 5.00 will generate an error, but MASM 4.00 failed to detect this situation.