| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| From: | "Dijkstra" <pepitek AT gmail DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Need to hook INT 21h from a DJGPP TSR |
| Date: | 8 Oct 2005 10:03:15 -0700 |
| Organization: | http://groups.google.com |
| Lines: | 24 |
| Message-ID: | <1128790995.160422.143560@g44g2000cwa.googlegroups.com> |
| References: | <cone DOT 1128591471 DOT 368325 DOT 13774 DOT 0 AT digisoft> |
| <di47pc$lfa$1 AT sadr DOT dfn DOT de> | |
| <cone DOT 1128678305 DOT 262815 DOT 30667 DOT 0 AT digisoft> | |
| <di6nfr$8bl$1 AT sadr DOT dfn DOT de> | |
| <di6ouv$8to$1 AT sadr DOT dfn DOT de> | |
| <di72gs$clu$1 AT sadr DOT dfn DOT de> | |
| NNTP-Posting-Host: | 84.120.21.83 |
| Mime-Version: | 1.0 |
| X-Trace: | posting.google.com 1128791000 7051 127.0.0.1 (8 Oct 2005 17:03:20 GMT) |
| X-Complaints-To: | groups-abuse AT google DOT com |
| NNTP-Posting-Date: | Sat, 8 Oct 2005 17:03:20 +0000 (UTC) |
| In-Reply-To: | <di72gs$clu$1@sadr.dfn.de> |
| User-Agent: | G2/0.2 |
| X-HTTP-UserAgent: | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) |
| Complaints-To: | groups-abuse AT google DOT com |
| Injection-Info: | g44g2000cwa.googlegroups.com; posting-host=84.120.21.83; |
| posting-account=oUJVkA0AAAB5pIttv7TaQLuacRjIDfoT | |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
Hi Rod! Thanks for your examples. I'm also experimenting with other extenders, namely DOS32A and WDOSX. The DOS32A is interesting since it seems much more understandable (from my poor assembler perspective :-) From the source code of DOS32A you can see it hooks INT 21h internally, so unless I deeply modify the DOS32A source code, it's a bad idea to hook it again. It can lead to many undesirable "PM" -> "RM" -> "PM Again" chain loops. So, I'm heading now into a diferent direction. I give up on the idea of chaining INT 2Fh and 21h and make some kind of installable driver instead. I will hook INT AFh and A1h (2Fh or 80h, 21h or 80h). They will be real mode callbacks (_go32_dpmi_allocate_real_mode_callback_iret) so that I could call them from real mode. Then, I will code an additional pure real mode tiny TSR that will be forwarding INT 21h and 2Fh safely from there. I don't know if all this mess will work, but it will be a good research work. :-) Cheers, Jose Miguel.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |