Rev 492 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 492 | Rev 1036 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | ;* IRQ HANDLER FOR PS/2 MOUSE * |
2 | ;* IRQ HANDLER FOR PS/2 MOUSE * |
3 | ;************************************** |
3 | ;************************************** |
Line 4... | Line 4... | ||
4 | 4 | ||
Line 5... | Line 5... | ||
5 | proc irq_handler |
5 | proc irq_handler |
6 | 6 | ||
Line 7... | Line 7... | ||
7 | call Wait8042BufferEmpty ;clear buffer |
7 | ; call Wait8042BufferEmpty ;clear buffer |
8 | in al,0x60 ;get scan-code |
8 | in al,0x60 ;get scan-code |
9 | 9 | ||
Line 121... | Line 121... | ||
121 | ;* Waiting for clearing I8042 buffer * |
121 | ;* Waiting for clearing I8042 buffer * |
122 | ;* Retutned state: * |
122 | ;* Retutned state: * |
123 | ;* ZF is set - good ending, * |
123 | ;* ZF is set - good ending, * |
124 | ;* ZF is cleared - time-out error. * |
124 | ;* ZF is cleared - time-out error. * |
125 | ;*********************************************** |
125 | ;*********************************************** |
126 | Wait8042BufferEmpty: |
126 | ;Wait8042BufferEmpty: |
127 | push ecx |
127 | ; push ecx |
128 | xor ecx,ecx |
128 | ; xor ecx,ecx |
129 | @@: |
129 | ; @@: |
130 | in al,64h |
130 | ; in al,64h |
131 | test al,00000010b |
131 | ; test al,00000010b |
132 | loopnz @b |
132 | ; loopnz @b |
133 | pop ecx |
133 | ; pop ecx |
134 | 134 | ; |
|
135 | ret |
135 | ; ret |