delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/02/02/21:31:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Rod Pemberton" <dont_have AT bitbucket DOT cmm>
Newsgroups: comp.os.msdos.djgpp
References: <43E12016 DOT 2070308 AT mainstreetsoftworks DOT com> <7t88b3-d2q DOT ln1 AT news DOT infowest DOT com> <43E1863D DOT 8080308 AT mainstreetsoftworks DOT com> <fgt8b3-c4u DOT ln1 AT news DOT infowest DOT com> <43E216B4 DOT 70509 AT mainstreetsoftworks DOT com> <43E243F8 DOT 7060401 AT mainstreetsoftworks DOT com> <1o8ab3-2i71 DOT ln1 AT news DOT infowest DOT com>
Subject: Re: TSR issues (with code)
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-IWN-Posted-By: [68.60.59.250] Thu Feb 2 19:00:20 2006
Message-ID: <k2qab3-d7b1.ln1@news.infowest.com>
X-Complaints-To: abuse AT eli DOT net
X-Trace: 52616e646f6d49564b835516cab6b1f728cd0aaad111e06a2859ca5fe614c2a3fdb4d17c804a296421caf04f2ab9f8214a32aed92738720b65c504214f7c5b945030e0528977c29a7f38c9d9aadff4072b682d14f7cd0ebd2f5d9004d1f2ac47d2343ce95e2cea23167ac336b948fac8a957de9ac0188f4d621bae6d5c4beb265704fa9221ae308747d3f26c70dc1a57
X-Abuse-Info: Please be sure to forward ALL headers so that we may process your complaint properly.
NNTP-Posting-Date: Fri, 03 Feb 2006 02:19:42 UTC
Date: Fri, 03 Feb 2006 02:22:35 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Rod Pemberton" <dont_have AT bitbucket DOT cmm> wrote in message
news:1o8ab3-2i71 DOT ln1 AT news DOT infowest DOT com...
>
> "Brad House" <brad AT mainstreetsoftworks DOT com> wrote in message
> news:43E243F8 DOT 7060401 AT mainstreetsoftworks DOT com...

> > 2) With PMODETSR the program seems to terminate totally instead
> >     of becoming a TSR.  DOS is still fully functional, just my
> >     program seems to go away.
>
> I'll try that first.  Likely indicates a programming error of some sort.

Yes. It failed.  So I decided to check the RM interrupt addresses to see if
they were being hooked, i.e., did they change?  And, lo and behold, for both
the working CWSDPMI and 'failed' PMODETSR, _neither_ had changed the RM
interrupt addresses.  Hmm, okay, did you setup PM interrupts?  Yup.  You've
setup PM interrupts.  For DJGPP, the only interrupts available in PM are the
DPMI spec and any interrupt that gets reflected to PM by the DPMI host,
i.e., int 0x08 etc.  Apparently, PMODETSR doesn't reflect int 0x08 from RM
to PM, so it appears to not work.  There is no int 0x28 in PM, which is why
your int 0x28 routine isn't being called.  For OpenWATCOM, you'll also have
any of the DosExtender interrupts available.   I think you'll probably want
to rewrite the code to trap the RM interrupt and reflect it to PM using a
realmode callback...


Good luck and keep in touch,

Rod Pemberton



- Raw text -


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