Rev 672 | Rev 709 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 672 | Rev 700 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 672 $ |
8 | $Revision: 700 $ |
9 | 9 | ||
Line 17... | Line 17... | ||
17 | proc attach_int_handler stdcall, irq:dword, handler:dword |
17 | proc attach_int_handler stdcall, irq:dword, handler:dword |
Line 18... | Line 18... | ||
18 | 18 | ||
19 | mov ebx, [irq] ;irq num |
19 | mov ebx, [irq] ; irq num |
20 | test ebx, ebx |
20 | test ebx, ebx |
- | 21 | jz .err |
|
- | 22 | cmp ebx, 15 ; hidnplayr says: we only have 16 IRQ's |
|
21 | jz .err |
23 | jg .err |
22 | mov eax, [handler] |
24 | mov eax, [handler] |
23 | test eax, eax |
25 | test eax, eax |
24 | jz .err |
26 | jz .err |
25 | mov [irq_tab+ebx*4], eax |
27 | mov [irq_tab+ebx*4], eax |