cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/27/05:33:25

From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019