Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #994

Re: How to program my own keyboard driver?

From Ross Ridge <rridge@csclub.uwaterloo.ca>
Newsgroups comp.os.msdos.programmer
Subject Re: How to program my own keyboard driver?
Date 2013-09-20 00:03 -0400
Organization University of Waterloo
Message-ID <l1ghf9$3g5$1@rumours.uwaterloo.ca> (permalink)
References <027615d4-f6f5-4664-bef1-e1aa1cd5f6bf@googlegroups.com>

Show all headers | View raw


Ruud Baltissen  <rbaltissen@gmail.com> wrote:
>I received a Commodore 8032-SK (http://commons.wikimedia.org/wiki/File:Muse=
>um-Enter-6094688.JPG) that was fried during a thunderstorm. I replaced is i=
>nners by a Pentium-II 233 MHz PC (http://www.baltissen.org/images/cbmhd-803=
>2a.jpg). I use it to create images from real floppies. The program is writt=
>en in Turbo Pascal and runs under W98 DOS. I attached the original keyboard=
> to the on-board LPT port. My program can handle it but it would be cooler =
>if I had a driver for it. Having some 25 years old experience with device d=
>rivers under DOS, I thought I could do it but unfortunately it didn't :(

I wouldn't create an MS-DOS character mode console (CON) driver for it.
I'd create a TSR, maybe loaded as a driver, that replaces the BIOS
keyboard interrupts.  The built in MS-DOS console input driver uses the
BIOS keyboard interrupts to get its input, so this will handle both.
You keyboard would then work both with programs that use MS-DOS to access
the keyboard and those that use the BIOS.  It wouldn't work with programs
that access the keyboard controller directly, but there's not much you
can do about that.

>Another problem, my keyboard doesn't generate interrupts. This means I have=
> to poll it. One idea is writing a TSR that is hooked on the timer interrup=
>t. Then the keyboard buffer has to filled, but how/where exactly? I'm famil=
>iar with the buffer used by the BIOS of the XT.

Create your own keyboard buffer, fill it in the timer interrupt and drain
it from your replacement BIOS keyboard (software) interrupt services.

					Ross Ridge

-- 
 l/  //	  Ross Ridge -- The Great HTMU
[oo][oo]  rridge@csclub.uwaterloo.ca
-()-/()/  http://www.csclub.uwaterloo.ca/~rridge/ 
 db  //	  

Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to program my own keyboard driver? Ruud Baltissen <rbaltissen@gmail.com> - 2013-09-19 09:26 -0700
  Re: How to program my own keyboard driver? JJ <duh@nah.meh> - 2013-09-20 06:02 +0700
    Re: How to program my own keyboard driver? Ruud Baltissen <rbaltissen@gmail.com> - 2013-09-20 03:07 -0700
  Re: How to program my own keyboard driver? Ross Ridge <rridge@csclub.uwaterloo.ca> - 2013-09-20 00:03 -0400
    Re: How to program my own keyboard driver? Ruud Baltissen <rbaltissen@gmail.com> - 2013-09-20 03:38 -0700
      Re: How to program my own keyboard driver? Ross Ridge <rridge@csclub.uwaterloo.ca> - 2013-09-20 09:19 -0400
  Re: How to program my own keyboard driver? "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 00:53 -0400
    Re: How to program my own keyboard driver? Ruud Baltissen <rbaltissen@gmail.com> - 2013-09-20 03:42 -0700
      Re: How to program my own keyboard driver? Ross Ridge <rridge@csclub.uwaterloo.ca> - 2013-09-20 09:31 -0400
      Re: How to program my own keyboard driver? "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 15:07 -0400
        Re: How to program my own keyboard driver? Ross Ridge <rridge@csclub.uwaterloo.ca> - 2013-09-21 11:56 -0400
  Re: How to program my own keyboard driver? "Bill Buckels" <bbuckels@mts.net> - 2013-09-20 20:21 -0500

csiph-web