Mail Archives: djgpp/1997/05/30/10:51:53
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 -