delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/20/09:53:45

Date: Sun, 20 Dec 1998 16:53:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Christian Hofrichter <ChristianHofrichter AT gmx DOT net>
cc: djgpp AT delorie DOT com
Subject: Re:Re:Need ASM-Syntax to put code into one asm-instruction
In-Reply-To: <367D056A.E1F31CB7@gmx.net>
Message-ID: <Pine.SUN.3.91.981220165112.29429G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sun, 20 Dec 1998, Christian Hofrichter wrote:

>     "movw  %4,%%ds  \n\t" /*<= causes crash */

You are in protected mode now, so you cannot load any arbitrary value 
into the segment registers.  In protected mode, the only values that can 
be loaded into these registers are valid selector numbers.  Otherwise you 
get GPF.

Why did you need to load the value 4 into DS?

- Raw text -


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