Rev 802 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 802 | Rev 1306 | ||
---|---|---|---|
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 | ;; Includes source code by Kulakov Vladimir Gennadievich. ;; |
6 | ;; Includes source code by Kulakov Vladimir Gennadievich. ;; |
7 | ;; Modified by Mario79 and Rus. ;; |
7 | ;; Modified by Mario79 and Rus. ;; |
- | 8 | ;; 02.12.2009 |
|
8 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
9 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 9... | Line 10... | ||
9 | 10 | ||
Line 10... | Line 11... | ||
10 | ;driver sceletone |
11 | ;driver sceletone |
Line 65... | Line 66... | ||
65 | mov al, 1 |
66 | mov al, 1 |
66 | out dx, al |
67 | out dx, al |
Line 67... | Line 68... | ||
67 | 68 | ||
68 | stdcall AttachIntHandler, 4, irq4_handler, dword 0 |
69 | stdcall AttachIntHandler, 4, irq4_handler, dword 0 |
69 | if DEBUG |
70 | if DEBUG |
70 | cmp eax, 0 |
71 | test eax, eax |
Line 71... | Line 72... | ||
71 | jne .label1 |
72 | jne .label1 |
72 | 73 | ||
73 | mov esi, msg_error_attach_int_handler |
74 | mov esi, msg_error_attach_int_handler |
74 | call Boot_Log |
75 | call Boot_Log |
75 | end if |
76 | end if |
76 | .label1: |
77 | .label1: |
77 | mov eax, 0 |
78 | ; mov eax, 0 |
- | 79 | ; mov ebx, 0x3F8 |
|
- | 80 | ; mov ecx, 0x3FF |
|
- | 81 | xor ebx,ebx |
|
78 | mov ebx, 0x3F8 |
82 | mov ecx, 0x3F8 |
Line 79... | Line 83... | ||
79 | mov ecx, 0x3FF |
83 | mov edx, 0x3FF |
80 | call ReservePortArea |
84 | call ReservePortArea |
81 | 85 | ||
Line 98... | Line 102... | ||
98 | ;mov [com2_mouse_detected],1 |
102 | ;mov [com2_mouse_detected],1 |
99 | ;mov [irq_owner+3*4], 1 ; IRQ3 owner is System |
103 | ;mov [irq_owner+3*4], 1 ; IRQ3 owner is System |
Line 100... | Line 104... | ||
100 | 104 | ||
Line 101... | Line 105... | ||
101 | stdcall AttachIntHandler, 3, irq3_handler, dword 0 |
105 | stdcall AttachIntHandler, 3, irq3_handler, dword 0 |
102 | 106 | ||
103 | mov eax, 0 |
107 | ; mov eax, 0 |
- | 108 | ; mov ebx, 0x2F8 |
|
- | 109 | ; mov ecx, 0x3F8 |
|
- | 110 | xor ebx,ebx |
|
- | 111 | mov ecx, 0x2F8 |
|
104 | mov ebx, 0x2F8 |
112 | mov edx, 0x3F8 |
105 | mov ecx, 0x3F8 |
113 | |
106 | call ReservePortArea |
114 | call ReservePortArea |
107 | if DEBUG |
115 | if DEBUG |
Line 117... | Line 125... | ||
117 | end if |
125 | end if |
118 | .resume: |
126 | .resume: |
Line 119... | Line 127... | ||
119 | 127 | ||
120 | stdcall RegService, my_service, service_proc |
128 | stdcall RegService, my_service, service_proc |
121 | if DEBUG |
129 | if DEBUG |
122 | cmp eax, 0 |
130 | test eax, eax |
Line 123... | Line 131... | ||
123 | jne @f |
131 | jne @f |
124 | 132 | ||
125 | mov esi, msg_exit |
133 | mov esi, msg_exit |
Line 217... | Line 225... | ||
217 | mov ecx, 0x1FFFF |
225 | mov ecx, 0x1FFFF |
218 | ; Öèêë îïðîñà ïîðòà |
226 | ; Öèêë îïðîñà ïîðòà |
219 | WaitData: |
227 | WaitData: |
220 | ; Îæèäàòü åùå 10 "òèêîâ" |
228 | ; Îæèäàòü åùå 10 "òèêîâ" |
221 | dec ecx |
229 | dec ecx |
222 | cmp ecx,0 |
230 | ; cmp ecx,0 |
223 | je NoMouse |
231 | jz NoMouse |
224 | ; Ïðîâåðèòü íàëè÷èå èäåíòèôèêàöèîííîãî áàéòà |
232 | ; Ïðîâåðèòü íàëè÷èå èäåíòèôèêàöèîííîãî áàéòà |
225 | mov DX, bx |
233 | mov DX, bx |
226 | add DX,5 |
234 | add DX,5 |
227 | in AL,DX |
235 | in AL,DX |
228 | test AL,1 ;Äàííûå ãîòîâû? |
236 | test AL,1 ;Äàííûå ãîòîâû? |