www.delorie.com/archives/browse.cgi | search |
Mime-Version: | 1.0 |
To: | "Jasper van Woudenberg" <p DOT v DOT woudenberg AT consunet DOT nl>, djgpp AT delorie DOT com |
From: | Nate Eldredge <nate AT cartsys DOT com> |
Subject: | Re: NASM-functions: Which processor registers should I |
maintain? | |
Date: | Thu, 30 Apr 1998 16:46:43 -0700 |
Message-ID: | <19980430234635.AAD20209@ppp119.cartsys.com> |
At 03:15 4/30/1998 GMT, Jasper van Woudenberg wrote: >Hi! > >I just have 1 small question: Which registers can I safely change in my >NASM-procedures, and which should I return to their previous value on >return? You must save ebx, esi, edi, ebp, ds, and es. All others may be modified at will (except of course esp). The return value goes in eax, or the 387 TOS register if it's a floating-point value. Nate Eldredge nate AT cartsys DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |