Structures and Segment Overrides

ID Number: Q30491

4.00 5.10

MS-DOS

buglist4.00

Problem:

When I do a segment override, using structures, I get an "Invalid

Object Module" error when I link.

Response:

This is a known problem in Version 4.00 of MASM. This problem was

corrected in Version 5.10.

The following example illustrates the problem:

;

; This is broken under 4.00 w\link 3.x.

;

NODE struc

integer dw ?

next dw ?

NODE ends

;

;

_DATA segment

_DATA ends

;

;

_TEXT segment

mov si, offset _DATA:next ; IT WORKS with ds:next

mov ax, 4C00h ; Exit to DOS

int 21h

_TEXT ends

end