kolibrios-fun/programs/system/loaddrv/loaddrv.asm
Kirill Lipatov (Leency) 4f9a8d23e4 1. loaddrv: show load drv result, show hint on error
2. debug.inc no need to use macros.inc for only one mcall
3. small fix in sysfuncs.txt
4. remove duplicated vendors in pcidev app

git-svn-id: svn://kolibrios.org@7644 a494cfbc-eb01-0410-851d-a64ba20cac60
2019-04-30 11:05:08 +00:00

44 lines
1.2 KiB
NASM

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License ;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
format binary as ""
use32
db 'MENUET01'
dd 1
dd start
dd i_end
dd mem
dd mem
dd driver_name, 0 ; NAME W/O EXT, NOT PATH. SEE f68.16
include '../../debug.inc'
start:
mov eax, 68
mov ebx, 16
mov ecx, driver_name
int 0x40
cmp eax, 0
jne ok
nok:
print 'LoadDrv: Error loading driver'
print 'Driver must be in /sys/drivers/ folder.'
print 'Its name must be w/o extension and it is case-sensitive'
mov eax, -1
int 0x40
ok:
print 'LoadDrv: Driver loaded well'
mov eax, -1
int 0x40
i_end:
driver_name rb 1024
mem: