delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/03/13/14:40:00

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
From: "Rajesh Vivekanandham" <r_vivekan AT satyam DOT net DOT in>
To: <djgpp-workers AT delorie DOT com>
Subject: COFF and MASM
Date: Thu, 14 Mar 2002 01:09:39 +0530
Message-ID: <000101c1cac6$d28d8570$6d06d6d2@terax>
MIME-Version: 1.0
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019