Mail Archives: djgpp/1998/09/09/07:17:23
From: | Tal Lavi <ranla AT post DOT tau DOT ac DOT il>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Making a keyboard handler
|
Date: | Wed, 09 Sep 1998 11:41:20 -0700
|
Organization: | Tel Aviv University
|
Lines: | 36
|
Message-ID: | <35F6CBD0.303A@post.tau.ac.il>
|
NNTP-Posting-Host: | slip-112.tau.ac.il
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
My __dpmi_int runtime percentage is pretty big in the profiling of my
graphics application.
It is said to be due to the slowly implemented getch() routine.
I have small knowledge on making keyboard handlers, and little or no
knowledge on the ins and outs of Protected Mode.
According to the DJGPP2 FAQ, there are many posibilities and options
that
are depended on the wway that I'll use the handler.
My application should be as fast as can be achieved, and will need the
support of a continueuss press of a key, which means that the interupt
will
be generated very frequently.
I'd like to know in which of the ways(RMode handler, PMode handler,
?both?,
etc.) should I choose.
I also read in the FAQ that the handler should be written in ASM, did
they
mean the inline ASM in DJGPP? If so, how will I be able to find the
address
of the beginning of the asm command?
This is my first attempt of a very tiime-critical application, which
means
that it is also my first attempt of creating a keyboard handler.
The way I see it, the handler should take care of everything that is
need to
be done when a key is pressed. For my application, it means that the
handler
should include complicated calculations, refer to all sorts of defined
variables in the program, and even perform a trigonometric function or
two.
Will all of that be possible in ASM?
- Raw text -