delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/10/21:30:54

From: Engard Ferenc <fery AT pons DOT sote DOT hu>
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: <Pine.LNX.3.96.990211031118.31261C-100000@Pons.sote.hu>
NNTP-Posting-Host: pons.sote.hu
Mime-Version: 1.0
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

- Raw text -


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