Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
I'm trying to set up PS/2 Mouse support in my OS, but can't even get the mouse ID... All it returns is 0xFFFF, and I assume that means that there is a problem? Nasm code:
; sends a command to the 8042 microchip controller
SendToChip:
push cx
push ax
cli
xor cx,cx
scWaitEmpty:
in al,64h
test al,10b
loopnz scWaitEmpty
pop ax
out 64h,al
sti
pop cx
ret
Update: I can now enable/disable the device and do tests on it. The problem is, I've put in code to set streaming mode on the mouse hardware. It should acknowledge with a 0xFA (ack) or a 0xFE (resend). The problem is, I seem to be getting information from the keyboard not from the mouse. Any ideas?
you might need to wait some time before the keyboard/mouse replies, my code wait's up to 5 seconds (this was one of the problems I had with the mouse in bochs).