X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Rajesh Vivekanandham" To: Subject: COFF and MASM Date: Wed, 13 Mar 2002 21:40:00 +0530 Message-ID: <000601c1caa9$87e88190$f406d6d2@terax> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C1CAD7.A1A0BD90" 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 AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C1CAD7.A1A0BD90 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am using MASM's COFF object files with Djgpp (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. ------=_NextPart_000_0007_01C1CAD7.A1A0BD90 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
I am = using MASM's=20 COFF object files with Djgpp (RHIDE ) and am getting a strange error = while=20 calling the coff file from a c program in the RHIDE = env.
 
 
this = is the MASM=20 assembly file
.386
.MODEL = FLAT
 
.DATA
VAR1 DW=20 0
VAR2 DW 0
 
.CODE
_xmain  PROC    = NEAR
MOV = AX,0ffffh
MOV=20 VAR2,AX
MOV VAR1,AX
RET
_xmain =20 ENDP
END
 
 
now = when i use this=20 function from rhide and read the contents of the disassembler=20 window
i can = see the=20 following code
 
MOV=20 %ax,VAR1
MOV=20 %ax,VAR1
 
VAR2 = store is=20 getting transformed into a VAR1 store!!
WHY??????
Please = help me out.=20 A BIG LOAD OF THANX in advance.
------=_NextPart_000_0007_01C1CAD7.A1A0BD90--