X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f From: "Rajesh Vivekanandham" To: Subject: COFF and MASM Date: Thu, 14 Mar 2002 01:09:39 +0530 Message-ID: <000101c1cac6$d28d8570$6d06d6d2@terax> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Reply-To: djgpp-workers AT delorie DOT com I am using MASM's (v6.15) COFF object files with Djgpp v2 (RHIDE ) and am getting a strange error while calling the coff file from a c program in the RHIDE env. this is the MASM assembly file .386 .MODEL FLAT .DATA VAR1 DW 0 VAR2 DW 0 .CODE _xmain PROC NEAR MOV AX,0ffffh MOV VAR2,AX MOV VAR1,AX RET _xmain ENDP END now when i use this function from rhide and read the contents of the disassembler window i can see the following code MOV %ax,VAR1 MOV %ax,VAR1 VAR2 store is getting transformed into a VAR1 store!! WHY?????? Please help me out. A BIG LOAD OF THANX in advance.