From: Engard Ferenc Newsgroups: comp.os.msdos.djgpp Subject: pm and rm interrupt handlers vs. emm386 Date: Thu, 11 Feb 1999 03:27:15 +0100 Organization: IIF Lines: 34 Message-ID: NNTP-Posting-Host: pons.sote.hu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi all, I need to write a quite fast (above 10kHz, ideally cc. 50kHz) irq handler. The program only puts a lot of bytes to the parallel port, maintains a few variables, and uses small tables for the correct timings. (Later I need to check the kbd and probably the serial device, that's why I can't write it without interrupts.) I am completely new to djgpp, asm, and even msdos too, but I have read some of the doc... :) So, if I need this speed, it means that I have to write both the protected and the real mode irq handlers? I have read in the docs that it's not convenient whether the dpmi server calls both of them, or only one... My test machine is currently a P266 with win98 (dos mode), but (if I can reach the needed speed) I want to run it on a 386SX-20 laptop (currently ms-dos 5.0 :))) Could somebody give me an advice which one I need to write, how can I implement a simple semaphore etc.? ...Or it is much better using for this relative simple task (for anybody, who was programmed hardware-stuff ;) a real-mode compiler? Thanks: Circum PS: Please cc to the reply-to address to... PS2: Yesterday I didn't knew what dpmi is good for, now I only don't know what does it do... Hmmmhhhh... :-) __ @ / \ _ _ Engard Ferenc l | ( \ / | | (\/) mailto:s-fery AT kkt DOT sote DOT hu \__/ | | \_ \_/ I I http://pons.sote.hu/~s-fery