From: viktor DOT lundstrom AT mailbox DOT swipnet DOT se (Viktor Lundstrom) Newsgroups: comp.os.msdos.djgpp Subject: Re: inline asm question Message-ID: <35a89e88.4547911@nntpserver.swip.net> References: <35A83CF5 DOT E23 AT mailexcite DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 18 Organization: A Customer of Tele2 Date: Sun, 12 Jul 1998 11:33:14 GMT NNTP-Posting-Host: 130.244.179.103 NNTP-Posting-Date: Sun, 12 Jul 1998 13:33:14 MET DST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Sat, 11 Jul 1998 22:35:01 -0600, Bob Berkawitz wrote: >When I try to add es to the clobber I get this error: > unknown register name 'es' in 'asm' >inline statement looks like this: > asm("movb $0x00, es" > :/*no output*/ > :/*no input*/ > :"es"); > >Do I not need to put es in the clobber list? or is their another way to >tell djgpp that I have changed its value? I dont want to push es onto >the stack to preserve its value. I don't think it's possible to put es on the clobberlist. I'm not sure, but I don't think you have to bother about whats in es, but you have to push/pop DS.