www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/27/09:45:40

From: "Chris Burgess" <jazz AT uknet DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP C code and NASM code...
Date: Sun, 27 Sep 1998 14:32:06 +0100
Message-ID: <906903193.14489.0.nnrp-03.c1ed260d@news.demon.co.uk>
References: <906864530 DOT 10053 DOT 0 DOT nnrp-09 DOT c1ed260d AT news DOT demon DOT co DOT uk> <360E01A8 DOT 9217E4D7 AT mailexcite DOT com>
NNTP-Posting-Host: uknet.demon.co.uk
Lines: 19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>
>Looks like your problem is the function exit code. Here fixed:
>leavenp:          mov esp,ebp
>                        pop ebp
>
>
Well no, it wasn't actually though that was a typing error in the message,
the code was actually correct, the same as you have put. I did change that
to "leave" however which does exactly the same thing. The problem was
actually the file format, which shouldn't of been a.out, but it should've
been "coff". Also I needed to add some sections for code and data. After
doing that, it all worked perfectly.
It took staying up till 4am to figure that out - oh the joys of programming!

Thanks for your help though

Chris


- Raw text -


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