X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: sales AT taiserver DOT com Newsgroups: comp.os.msdos.djgpp Subject: 30K Timer tic interrupt handler Date: Sat, 24 May 2008 09:58:46 -0700 (PDT) Organization: http://groups.google.com Lines: 40 Message-ID: <0cef84c2-4295-401e-aa83-cfb00115a60b@34g2000hsf.googlegroups.com> NNTP-Posting-Host: 68.199.114.41 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1211648327 6066 127.0.0.1 (24 May 2008 16:58:47 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sat, 24 May 2008 16:58:47 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: 34g2000hsf.googlegroups.com; posting-host=68.199.114.41; posting-account=mI_aCAoAAAA-moEBI3iStu4dP2zFKk29 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi I wonder if any one has any ideas on how to tie this all together. The faq are missing some key points Does any one have an example of how write and install a real mode interrupt handler. Wait - read on. The examples in the FAQ show how to install a PM mode handler or how to install a RM handler reflected from PM mode. We need a real mode handler We have the timer set to 30khx interrupt rate. When it fires in PM mode it get handled fine. If the processor happens to be in real mode the overhead for the PM task switch is too great and the system hangs after a couple of hits. We have the PM handler covered. not sure how to do the real mode handler natively. I assume we have to : 1) I believe we would need to write the handler is asm. Can we do this inline or must we compile separately. 2) Next we need to move the asm obj blob into real memory space - how do you this 3) finally we need to reset the real mode vector to point to the 16bit real mode code - i assume we can just use the dos calls to do this. In the right order with the PM handler install of course. Any hep would be appreciated. Also if you rerffence a faq can you tell me which one specifically. Feel freen to email directly Thanks Daniel sales AT taiserver DOT com