Xref: news2.mv.net comp.os.msdos.djgpp:3544 From: terra AT diku DOT dk (Morten Welinder) Newsgroups: comp.os.msdos.djgpp Subject: Re: Memory problem Date: 5 May 1996 19:55:04 GMT Organization: Department of Computer Science, U of Copenhagen Lines: 22 Sender: terra AT tyr DOT diku DOT dk Message-ID: <4mj12o$r72@vidar.diku.dk> References: <4mdcv7$2qgu AT venere DOT inet DOT it> NNTP-Posting-Host: tyr.diku.dk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp edoardo AT smartcom DOT it (Edo) writes: >Can anyone help me with this little piece of code? [snipped!] Several problems: 1. You _must_ tell gcc what registers you're trashing in your assembler code. Lokk up "extended asm" in the gcc info files. 2. _Don't_ use segment overrides as part of the addresses. (Use "es" as a separate instruction on the line before; this is a gas bug.) 3. You must restore the ES register yourself. I don't have my machine here so I haven't actually tried your code. The above problems might be the key, though. Morten