From: Vik Heyndrickx Newsgroups: comp.os.msdos.djgpp Subject: Re: A strange memory problem Date: Mon, 27 Apr 1998 09:07:24 +0200 Organization: University of Ghent, Belgium Lines: 24 Message-ID: <35442EAC.7C98@rug.ac.be> References: <01bd7094$1de72440$78001dc2 AT rigotti> NNTP-Posting-Host: eduserv1.rug.ac.be 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 Precedence: bulk Aurelio wrote: > __asm__ __volatile__(" \n > cld \n > movw $16000,%%cx \n > movw %1,%%es \n > movl $0xA0000,%%edi \n > movl %0,%%esi \n > rep \n > movsl " > : > :"S"(DoubleBuffer),"g"(_dos_ds) > :"edi","cx","ebx","memory" > ); > > When I execute this code the program crashes with the error: > General protection fault etc.. DJGPP uses %es. You should not modify it without restoring its value afterwards. -- \ Vik /-_-_-_-_-_-_/ \___/ Heyndrickx / \ /-_-_-_-_-_-_/ Knight in the Order of the Unsigned Types