Message-ID: <38752C62.BAC3CE10@connection.com> Date: Thu, 06 Jan 2000 18:59:31 -0500 From: sam X-Mailer: Mozilla 4.6 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: The endless int31 hooking debugging continued References: <83puve7q4q DOT fsf AT mercury DOT st DOT hmc DOT edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: pm1-98.connection.com X-Trace: 6 Jan 2000 19:14:03 -0500, pm1-98.connection.com Lines: 24 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Nate Eldredge wrote: > Eli Zaretskii 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 Exactly right.