Subversion Repositories Kolibri OS

Rev

Rev 3766 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3766 Rev 3767
Line 8... Line 8...
8
format MS COFF
8
format MS COFF
Line 9... Line 9...
9
 
9
 
Line 10... Line 10...
10
DEBUG           = 1
10
DEBUG           = 1
11
 
-
 
12
include 'proc32.inc'
11
 
-
 
12
include 'proc32.inc'
-
 
13
include 'imports.inc'
Line 13... Line 14...
13
include '../struct.inc'
14
include '../struct.inc'
14
include 'imports.inc'
15
 
15
 
16
 
16
VID_INTEL         = 0x8086
17
VID_INTEL         = 0x8086
Line 166... Line 167...
166
section '.flat' code readable align 16
167
section '.flat' code readable align 16
Line 167... Line 168...
167
 
168
 
Line 168... Line 169...
168
proc START stdcall, state:dword
169
proc START stdcall, state:dword
169
 
-
 
170
        mov     eax, [srv_entry]
-
 
171
        test    eax, eax
-
 
172
        jnz     .done
170
 
173
 
171
        mov     eax, [srv_entry]
Line 174... Line 172...
174
        cmp     [state], 1
172
        cmp     [state], 1
175
        jne     .stop
173
        jne     .stop
176
 
174
 
177
     if DEBUG
175
     if DEBUG
Line -... Line 176...
-
 
176
        mov     esi, msgInit
-
 
177
        call    SysMsgBoardStr
178
        mov     esi, msgInit
178
     end if
179
        call    SysMsgBoardStr
179
 
180
     end if
180
        test    eax, eax
-
 
181
        jnz     .done
-
 
182
        call    detect_controller
-
 
183
        ret
181
 
184
.stop:
182
        call    detect_controller
185
        test    eax, eax
183
        ret
186
        jz      .done
184
.stop:
187
        leave
185
        jmp     eax
188
        jmp     eax
Line 414... Line 417...
414
msgInit         db 'Detecting hardware...',13,10,0
417
msgInit         db 'Detecting hardware...',13,10,0
415
msgFail         db 'No compatible soundcard found!',13,10,0
418
msgFail         db 'No compatible soundcard found!',13,10,0
416
msgLoading      db 'Loading ',0
419
msgLoading      db 'Loading ',0
417
msgNewline      db 13,10,0
420
msgNewline      db 13,10,0
Line -... Line 421...
-
 
421
 
418
 
422