From: dmcneill AT pne DOT co DOT uk (Dave McNeill) Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem combining DJGPP and MASM Date: Fri, 25 Apr 1997 10:25:06 GMT Message-ID: <336085a7.2981546@news.demon.co.uk> References: NNTP-Posting-Host: firewall.futurenet.co.uk Lines: 15 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Thu, 24 Apr 1997 20:43:22 GMT, patrick AT spirit DOT gun DOT de (Patrick Fedick) wrote: >I have compiled the assembly module with MASM 6.11d: ml /c /coff testasm.asm >and the c-module with gcc 2.7.2.1: gcc -o test.exe -O testasm.obj test.c > >If I start this program, it returns: "The value is: 1", but it must be "2". >I altered the function to "mov eax,cs:var2", but it still returns "1". > >Can anyone explain me this? It would be great, if someone can help me to >fix this problem. Isn't it time that FAQ 17.3 was changed to reflect the fact that masm (win32) COFF is *not* the same as DJGPP COFF?