What ports do I have to read/write to to enable the mouse, and what ports do I have to read from to get the mouse information. And is there a difference between the ports in a serial mouse and a PS/2 Mouse?
thanks
SystemHalted
Mouse
RE:Mouse
refer this message :
http://www.osdev.org/board.jsp?message=4843
http://www.osdev.org/board.jsp?message=4896
It contains very detail explanation & simple example code for PS/2 mouse. (Thanks to gaffi)
For futher detail like PS/2 3D mouse, 5 button mouse refer this link
http://panda.cs.ndsu.nodak.edu/%7Eachap ... mouse.html
Actually PS/2 mouse u have to send the commands to PS/2 keyboard port ie. 0x60.
and status u got to check on 0x64 port.
To send command to mouse u have to write first 0xD4 byte to the keyboard port and then write the mouse command or parameter to the same keyboard port. Whetever the byte written after 0xD4 will be send to the mouse from keyboard.
rgds
YogaRamanan.T
http://www.osdev.org/board.jsp?message=4843
http://www.osdev.org/board.jsp?message=4896
It contains very detail explanation & simple example code for PS/2 mouse. (Thanks to gaffi)
For futher detail like PS/2 3D mouse, 5 button mouse refer this link
http://panda.cs.ndsu.nodak.edu/%7Eachap ... mouse.html
Actually PS/2 mouse u have to send the commands to PS/2 keyboard port ie. 0x60.
and status u got to check on 0x64 port.
To send command to mouse u have to write first 0xD4 byte to the keyboard port and then write the mouse command or parameter to the same keyboard port. Whetever the byte written after 0xD4 will be send to the mouse from keyboard.
rgds
YogaRamanan.T