1.

Solve : How to read directly PS/2 port??

Answer»

Hi!

Really I found not correct forum for coding which member I'm 'cause all forums are PL specific.

I need help - how to read PS/2 keyboard/mouse port directly by C or ASSEMBLY code.

Can anybody recommend me any forum or any web where I find req'd info?
I'm lost in Google results.

Thank you for each word.
MiroDon't have any experience of writing drivers myself, but this looks like a fairly SIMPLE summary:

http://www.cas.mcmaster.ca/~se3f03/content/assignment4tips.pdf

Example:

Code: [Select]Here's a small example of how
you might install your IRQ handler:
install_handler:
PUSH ax
push es
xor ax, ax ; set es to the IVT
mov es, ax
cli ; disable interrupts
mov ax, irq_handler ; irq_handler is declared elsewhere
mov [es:0x1d0], ax ; store pointer to the offset
mov ax, cs ; we also need the CS value
mov [es:0x1d2], ax ; store SEGMENT at 0x1d0 + 2
; interrupt handler is now fully installed
sti ; enable interrupts
pop es
pop ax
ret
Also here:

https://wiki.osdev.org/Mouse_Input#PS2_Mouse_Commands





Thank you very much.
For beginning it is lot.

BTW:
I had simple Q on Slovak forums (I'm from Slovakia) and there is at first place irony and contempt - I never ask Slovak forums again.
Really it is bad.

Thank you very very much!
Miro



Discussion

No Comment Found