Date: Sun, 20 Dec 1998 16:53:59 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Christian Hofrichter 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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?