www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/11/18:10:28

From: nell AT norland DOT idcnet DOT com (Russell Nell)
Newsgroups: comp.os.msdos.djgpp
Subject: MASM COFF calls from DJGPP functions
Date: 11 Apr 1997 20:15:50 GMT
Organization: Norland Corp, Fort Atkinson, WI
Lines: 35
Distribution: global
Message-ID: <5im65m$ejm@norgate.norland.com>
NNTP-Posting-Host: norsun.norland.com
Keywords: MASM COFF
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Help linking MASM ver 6.11 COFF files to DJGPP objects.

I have source code for a product that is 90% C and 10% assembly.
I needed to quickly get the library compiled using DJGPP.  Instead
of modifying all the assembly I used MASM ver 6.11 to make COFF
files from the assembly.  I also had to patch the relocation 
tables in the COFF files to get them to work.  

I now have run into a problem where my C code is storing a variable
in ebx during a call to an assembly routine.  The assembly code then
destroys the value.

QUESTIONS:
    1) What registers does DJGCC expect to be preserved by the
       called function?
    2) Has anyone else gotten MASM COFF files to link and run
       with DJGCC code?

I am in an extreme hurry and do not want to re-write the assembly
code.  I have also gotten 90% done without ANY modifications to
the purchased library code (which is a GOOD thing).  Any help
would be appreciated.

PS: The library is a DOS based printer driver,
		"SLATE with Graphics" by The Symmetry Group.

Thanks in advance

--------------------------------
Rusty Nail (Russell R. Nell)
russ DOT nell AT norland DOT com   (414) 563-8456 ext. 214
Norland Corporation     W6340 Hackbarth Road, Fort Atkinson, WI 53538-8999

--
--Rusty Nail

- Raw text -


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