Mail Archives: djgpp/2000/11/04/01:35:18
> From: Andy Chamard <achamard AT home DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sat, 04 Nov 2000 05:14:47 GMT
>
> specifically how do I get the mouse data packets into a data structure
> (which can then be dealt with)? With a serial mouse it is easy (just
> check port address 0x3f8) but with a PS/2 mouse it seems that there is
> no I/O port address to check, just IRQ 12 ( which is mapped to hardware
> interrupt 0x74). Is there a port address for IRQ 12 ?
The PS/2 mouse communications cane be done via the port 60h (the
keyboard controller port) with special commands. For the details,
check out some good book on PC hardware, like "The Indispensable PC
Hardware Book", 3rd ed., or "The Undocumented PC", 2nd ed. (both are
available from DJ's server's Book Shop).
Btw, I don't really understand, from what you posted, why do you need
a port and why IRQ 12 is no good: what does it matter whether you get
your data via an interrupt or from a port?
- Raw text -