| delorie.com/archives/browse.cgi | search |
| Message-ID: | <38752C62.BAC3CE10@connection.com> |
| Date: | Thu, 06 Jan 2000 18:59:31 -0500 |
| From: | sam <samirw AT connection DOT com> |
| 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: | <Pine DOT SUN DOT 3 DOT 91 DOT 1000106120145 DOT 20220H-100000 AT is> <83puve7q4q DOT fsf AT mercury DOT st DOT hmc DOT edu> |
| 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 <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 Exactly right.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |