Date: Sat, 04 Nov 2000 08:35:20 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Andy Chamard Message-Id: <7458-Sat04Nov2000083520+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.5h CC: djgpp AT delorie DOT com In-reply-to: <3A039ACD.D198A637@home.com> (message from Andy Chamard on Sat, 04 Nov 2000 05:14:47 GMT) Subject: Re: Installing a custom PS/2 Mouse ISR References: <3A039ACD DOT D198A637 AT home DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Andy Chamard > 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?