Subversion Repositories Kolibri OS

Rev

Rev 4322 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4322 hidnplayr 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7
 
8
format binary as ""
9
 
10
use32
11
        db      'MENUET01'
12
        dd      1
13
        dd      start
14
        dd      i_end
15
        dd      mem
16
        dd      mem
7644 leency 17
        dd      driver_name, 0  ; NAME W/O EXT, NOT PATH. SEE f68.16
4322 hidnplayr 18
 
7644 leency 19
include '../../debug.inc'
20
 
4322 hidnplayr 21
start:
22
        mov     eax, 68
23
        mov     ebx, 16
7644 leency 24
        mov     ecx, driver_name
4322 hidnplayr 25
        int     0x40
26
 
7644 leency 27
        cmp     eax, 0
28
        jne     ok
29
nok:
30
        print   'LoadDrv: Error loading driver'
31
		print   'Driver must be in /sys/drivers/ folder.'
32
		print   'Its name must be w/o extension and it is case-sensitive'
4322 hidnplayr 33
        mov     eax, -1
34
        int     0x40
7644 leency 35
ok:
36
        print   'LoadDrv: Driver loaded well'
37
        mov     eax, -1
38
        int     0x40
39
 
4322 hidnplayr 40
i_end:
41
 
7644 leency 42
        driver_name  rb 1024
4322 hidnplayr 43
 
44
mem: