From: Vik Heyndrickx Newsgroups: comp.os.msdos.djgpp Subject: Re: Asm routine returns Date: Mon, 06 Oct 1997 09:37:11 +0200 Organization: University of Ghent, Belgium Lines: 25 Message-ID: <34389527.4D61@rug.ac.be> References: NNTP-Posting-Host: eduserv1.rug.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Sam Davies wrote: > 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? I'm sure you have to preserve si, di, bp, ds, es (and ofcourse cs:ip & ss:sp) I think you have to preserve bx I don't think you have to preserve ax, dx, cx I'm sure you don't have to preserve (unless your program expects otherwise) fs, gs -- +----------------+ | Vik Heyndrickx | +----------------+