Rev 769 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 769 | Rev 774 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
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 | ;; Includes source code by Kulakov Vladimir Gennadievich. ;; |
|
- | 7 | ;; Modified by Mario79 and Rus. ;; |
|
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
8 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 9... | ||
7 | 9 | ||
Line 8... | Line 10... | ||
8 | ;driver sceletone |
10 | ;driver sceletone |
Line 64... | Line 66... | ||
64 | mov dx, bx |
66 | mov dx, bx |
65 | inc dx ; 0x3f8 + 1 |
67 | inc dx ; 0x3f8 + 1 |
66 | mov al, 1 |
68 | mov al, 1 |
67 | out dx, al |
69 | out dx, al |
Line 68... | Line 70... | ||
68 | 70 | ||
69 | stdcall AttachIntHandler, 4, irq4_handler |
71 | stdcall AttachIntHandler, 4, irq4_handler, dword 0 |
70 | if DEBUG |
72 | if DEBUG |
71 | cmp eax, 0 |
73 | cmp eax, 0 |
Line 72... | Line 74... | ||
72 | jne .label1 |
74 | jne .label1 |
Line 97... | Line 99... | ||
97 | cmp AL,'M' |
99 | cmp AL,'M' |
98 | jne .resume |
100 | jne .resume |
99 | ;mov [com2_mouse_detected],1 |
101 | ;mov [com2_mouse_detected],1 |
100 | ;mov [irq_owner+3*4], 1 ; IRQ3 owner is System |
102 | ;mov [irq_owner+3*4], 1 ; IRQ3 owner is System |
Line 101... | Line 103... | ||
101 | 103 | ||
Line 102... | Line 104... | ||
102 | stdcall AttachIntHandler, 3, irq3_handler |
104 | stdcall AttachIntHandler, 3, irq3_handler, dword 0 |
103 | 105 | ||
104 | mov eax, 0 |
106 | mov eax, 0 |
105 | mov ebx, 0x2F8 |
107 | mov ebx, 0x2F8 |
Line 356... | Line 358... | ||
356 | 358 | ||
Line 357... | Line 359... | ||
357 | 359 | ||
Line 358... | Line 360... | ||
358 | 360 | ||
359 | version dd (5 shl 16) or (API_VERSION and 0xFFFF) |
361 | version dd (5 shl 16) or (API_VERSION and 0xFFFF) |
360 | 362 | ||
361 | my_service db 'MY_SERVICE',0 ;max 16 chars include zero |
363 | my_service db 'COM_Mouse',0 ;max 16 chars include zero |