Microsoft KB Archive/26816

Missing or Unreachable Code Segment ID Number: Q26816

5.00 MS-DOS buglist5.00 fixlist5.00a

Problem:

The following code sample produces the error message “A2062: Missing or unreachable code segment.”

.model large .code label: .code dummy label2: end Response:

Microsoft has confirmed this to be a problem in Version 5.00. This problem was corrected in MASM Version 5.00a. Please call Microsoft Product Support Services at (206) 646-5109 and request an update to MASM Version 5.00a.

A workaround is to insert “assume cs:@CurSeg” under the “.code dummy” instruction.