

InterviewSolution
Saved Bookmarks
1. |
Solve : how to develop a protected mode TSR under DPMI 0.9?? |
Answer» <html><body><p>hello everyone ,<br/> I want to develop a protected mode TSR under DPMI 0.9 using BC4.5 . In DPMI1.0 there are functions 0c00 and 0c01 that supported a program to stay resident .But in DPMI 0.9 these functions didn't exist ,so I want to know how to develop it .If you know ,please tell me.If you have some examples ,please paste them or you can mail it to me .My e-mail address is <a href="/cdn-cgi/l/email-protection">[email protected]</a> everyone.Welcome to CH forums<br/><strong>The moderator will remove your e-mail.</strong><br/>You are talking about:<br/> Quote</p><blockquote>DOS protected mode interface<br/>Abbreviated as DPMI, DOS Protected Mode Interface is a memory mode allowing DOS programs to operate in protected mode allowing DOS applications to support multitasking and use portions beyond the 640KB limit.<br/>Also see: EMS, Memory definitions, Protected mode </blockquote> Sorry I can not help you. Why can you not use the 1.0 version?<br/>DPMI 1.0 Programming API Specfication<br/><a href="http://www.delorie.com/djgpp/doc/dpmi/">http://www.delorie.com/djgpp/doc/dpmi/</a><br/>I wish I could use DPMI 1.0,but there is some limit.I hate the limit.But thank you also the same.who can help me!!!!!If anybody wants to know more about this:<br/><a href="https://en.wikipedia.org/wiki/DOS_Protected_Mode_Interface">http://en.wikipedia.org/wiki/DOS_Protected_Mode_Interface</a><br/>DPMI still works. But most modern programing with use DiretcX or something like that.Finally I found a way,but I can't quite <a href="https://interviewquestions.tuteehub.com/tag/understand-720010" style="font-weight:bold;" target="_blank" title="Click to know more about UNDERSTAND">UNDERSTAND</a> it.First you should install the interrupt using function 0204h of int 31h,then keep the programe to stay resident using function 31h of int 21h.But I didn't know how to decide the size.The return code has been <a href="https://interviewquestions.tuteehub.com/tag/made-1082584" style="font-weight:bold;" target="_blank" title="Click to know more about MADE">MADE</a> to be zero.<br/>My question is that my TSR runs under protected mode .But the int 21h runs under real mode,can it read or wirte the memory of protected mode?Wish I knew the <a href="https://interviewquestions.tuteehub.com/tag/answer-15557" style="font-weight:bold;" target="_blank" title="Click to know more about ANSWER">ANSWER</a>. What little I have read seems to say you don't worry about it, that is what DPMI does.<br/>Here is a site that has a good but brief collection of tools for hard core low-level programming. The article does not directly cover you question, but maybe it sheds some <a href="https://interviewquestions.tuteehub.com/tag/light-238826" style="font-weight:bold;" target="_blank" title="Click to know more about LIGHT">LIGHT</a> on what you can do with a DPMI program.<br/><br/><a href="http://www.thefreecountry.com/programming/dosextenders.shtml">http://www.thefreecountry.com/programming/dosextenders.shtml</a><br/><br/>Scroll down the <a href="https://interviewquestions.tuteehub.com/tag/page-25452" style="font-weight:bold;" target="_blank" title="Click to know more about PAGE">PAGE</a> at take a look at CSDPMI DPMI Host.</body></html> | |