delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/30/10:51:53

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: automatic register save on asm call?
Date: 30 May 1997 06:33:13 GMT
Organization: The National Capital FreeNet
Lines: 21
Message-ID: <5mlsb9$3hv@freenet-news.carleton.ca>
References: <Pine DOT VMS DOT 3 DOT 91-b11-vms DOT 970527101746 DOT 3364C-100000 AT sat111 DOT physnet DOT uni-hamburg DOT de>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet5.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Michael Flegel (FLEGEL AT physnet DOT uni-hamburg DOT de) writes:
> Hi Y'all!
> 
> I'm currently writing stuff in DJGPP/NASM. I need to know whether there 
> is anyway that DJGPP can push the registers it needs onto the stack. I 
> don't want to do a pushad/pusha or whatever in every on of my assembler 
> routines - especially the time-critical ones. I'd rathjer have DJGPP take 
> care of the registers it needs. So (this might sound kinda stupid) is 
> there a directive that tells djgpp to store its registers or can I tell 
> djgpp what registers are modified so that it will store those that are 
> relevent to the surrounding code?

Try GNU extended inline asm, you can specify what registers are clobbered
and need to be saved/worked around.

--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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