Getting a 0-Byte Segment When Segment Size Is Actually 64K

ID Number: Q23472

4.00

MS-DOS

buglist4.00 fixlist5.00

Problem:

MASM will create a 0 byte-size segment and produce no error messages

if the size of a segment is exactly 64K.

The following is an example:

data segment para public 'DATA'

foo DW 32768 dup(?)

data ends

end

Response:

Microsoft has confirmed this to be a problem in Version 4.00. This

problem was corrected in Version 5.00.

A workaround to this problem is to generate separate segment modules

and let the linker combine the modules.