Subversion Repositories Kolibri OS

Rev

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

  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
  17.         dd      driver_name, 0  ; NAME W/O EXT, NOT PATH. SEE f68.16
  18.  
  19. include '../../debug.inc'
  20.                
  21. start:
  22.         mov     eax, 68
  23.         mov     ebx, 16
  24.         mov     ecx, driver_name
  25.         int     0x40
  26.  
  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'
  33.         mov     eax, -1
  34.         int     0x40
  35. ok:
  36.         print   'LoadDrv: Driver loaded well'
  37.         mov     eax, -1
  38.         int     0x40
  39.  
  40. i_end:
  41.  
  42.         driver_name  rb 1024
  43.  
  44. mem: