From: Jens Vaasjo Newsgroups: comp.os.msdos.djgpp Subject: simple in-line asm question ? Date: Wed, 25 Dec 1996 18:07:02 -0700 Organization: University of Alberta, Edmonton, Canada Lines: 12 Message-ID: <32C1CFB6.482E@gpu.srv.ualberta.ca> NNTP-Posting-Host: async14-3.remote.ualberta.ca 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 With in-line assemly in djgpp can you assume that es==ds when it gets enters your inline assemly ? Also does the es register have to be preserved (if you change es do you have to set it back its its original value) ? Also if you have to preserve the es register does it have to be done manually ("pushl %%es\n" and "popl %%es\n") or can you put something in the 'registers clobbered' section ("ecx" works but "es" does not)? Thanks. Jens.