From: Michael Flegel Newsgroups: comp.os.msdos.djgpp Subject: automatic register save on asm call? Date: Tue, 27 May 1997 10:22:02 +0000 Organization: University of Hamburg -- Germany Lines: 25 Message-ID: NNTP-Posting-Host: sat111.physnet.uni-hamburg.de Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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? If what I just wrote is at all clear to anyone, I'd really appreciate an email. Thanx in advance. MLF/SLi ;----------------------------------------------------------------------------; ; Michael Lamar Flegel ; Student of Math and Physics in Hamburg, Germany ; ; Am Ehrenmal 2 ;---------------------------------------------------; ; 21516 Schulendorf ; www.physnet.uni-hamburg.de/home/vms/flegel ; ; Germany ; flegel AT physnet DOT uni-hamburg DOT de ; ;----------------------------------------------------------------------------;