Mail Archives: djgpp/1997/02/05/16:20:16
>> i'm trying to convert a keyboard handler (which someone gave to me in pascal)
>> to be used with djgpp. would i be better hooking the realmode interrupt to do
>> this or the protected mode one? any suggestions from the field here :)
>
> Try looking at the following two files:
>
> ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2tk/mkkbd3.zip
haven't tried that one i'll have a look.
> ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2tk/libkb100.zip
this one is good but waaaay too slow. it's all written in c and very portable
and such but makes a lousy library for fast access. which is why i was
trying to use this one :) it's the learning that's important really, i'm
not really wanting to use someone elses work so much as figure how it works :)
> You should read the FAQ (v2/faq210b.zip) as well, particularly chapters
> 17 and 18.
i did :) and the related links. basically it says that sometimes it's better
to install a protected mode hook, other times a real mode one. so my question
was - has anyone done this before and which do they advise? because i notice
the in instruction takes 21 cycles in protected mode, which seems a lot,
but would switching to real mode merely make things worse?
it's an exercise in trying to get a lousy piece of code to work, rather than
a necessity to have a routine or i'd just use markus' code :)
regards,
nik
--
Graham Tootell
nikki AT gameboutique DOT com
- Raw text -