Mail Archives: djgpp/1997/10/05/21:46:26
Newsgroups: | comp.os.msdos.djgpp
|
From: | Sam Davies <sdavies AT unix DOT trilogy DOT net>
|
Subject: | Asm routine returns
|
Message-ID: | <EHLvAq.LqH@nonexistent.com>
|
Mime-Version: | 1.0
|
Date: | Mon, 6 Oct 1997 01:12:18 GMT
|
Lines: | 20
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Question: I've got an asm routine (in NASM) that seems to work
perfectly (I can call it from the main() function with no apparent
problems). But when I call it from certain contexts (for example from a
member function of a class), I get the following error when stepping
through the statement after the routine:
Program has received signal:
SIGABRT, Aborted
I know that this error is actually a result of calling my routine, since
I can comment out the call to the function, and there's no problem...
So I'm assuming it must be that I messed up within the routine... I
modify SI, DI, BP, and DS, but I push and pop all these at the beginning
and end... Is there anything else that I could be screwing up in my
routine that is causing this strange behavior? I don't have to save the
other general registers, do I?
--
Sam Davies <sdavies AT mail DOT trilogy DOT net>
- Raw text -