www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/21/11:27:37

Date: Mon, 21 Dec 1998 18:25:55 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Need ASM-Syntax to put code into one asm-instruction
In-Reply-To: <8D53104ECD0CD211AF4000A0C9D60AE336F619@probe-2.Acclaim-Euro.net>
Message-ID: <Pine.SUN.3.91.981221182514.8245D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Mon, 21 Dec 1998, Shawn Hargreaves wrote:

> Eli Zaretskii responded:
> >>  "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.
> 
> But he wrote %4, not $4.

Yep, it seems I was too fast to jump the gun.  Sorry.

- Raw text -


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