From: Nate Eldredge 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: 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 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