www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/05/16:20:16

From: nikki AT gameboutique DOT co (nikki)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: interrupts and unknown opcodes
Date: 5 Feb 1997 10:26:34 GMT
Organization: GameBoutique Ltd.
Lines: 34
Message-ID: <5d9n8q$d17@flex.uunet.pipex.com>
References: <5d869q$3br AT flex DOT uunet DOT pipex DOT com> <32F8064E DOT 66EA AT cs DOT com>
NNTP-Posting-Host: www.gameboutique.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>> 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 -


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