www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/06/19:09:42

From: Nate Eldredge <neldredge AT hmc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: The endless int31 hooking debugging continued
Date: 06 Jan 2000 15:10:45 -0800
Organization: InterWorld Communications
Lines: 18
Message-ID: <83puve7q4q.fsf@mercury.st.hmc.edu>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000106120145 DOT 20220H-100000 AT is>
NNTP-Posting-Host: mercury.st.hmc.edu
X-Trace: nntp1.interworld.net 947200232 73547 134.173.45.219 (6 Jan 2000 23:10:32 GMT)
X-Complaints-To: usenet AT nntp1 DOT interworld DOT net
NNTP-Posting-Date: 6 Jan 2000 23:10:32 GMT
X-Newsreader: Gnus v5.7/Emacs 20.4
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> writes:

> > /* Restore segments to valid DJGPP state. */
> >         movw %cs:_my_ds, %ds
> >         movw _my_ds, %es
> >         movw _my_ds, %ss
> 
> I don' think you can move values into segment registers directly, I
> think you need to use AX as intermediary.

Unless I'm mistaken, you can.  You can move values from either
registers or memory into a segment register.  The only kind that's
forbidden is immediate values.  But I don't have my books here to
check it.
-- 

Nate Eldredge
neldredge AT hmc DOT edu

- Raw text -


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