loaddrv program: silently load the driver (driver name must be given as parameter).

Replaces commouse program.

git-svn-id: svn://kolibrios.org@4322 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-12-03 20:29:24 +00:00
parent e30f7484da
commit 6c3d19779f
13 changed files with 41 additions and 52 deletions

View File

@ -52,7 +52,7 @@ FASM_PROGRAMS:=\
calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \ calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \
calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \ calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \
colrdial:COLRDIAL:$(PROGS)/system/colrdial/color_dialog.asm \ colrdial:COLRDIAL:$(PROGS)/system/colrdial/color_dialog.asm \
commouse:COMMOUSE:$(PROGS)/system/commouse/trunk/commouse.asm \ loaddrv:LOADDRV:$(PROGS)/system/loaddrv/loaddrv.asm \
cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \ cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \
cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \ cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \
desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \ desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \

View File

@ -4,7 +4,7 @@
# If delay is negative, wait for termination of the spawned process. Otherwise, simply wait # If delay is negative, wait for termination of the spawned process. Otherwise, simply wait
# #
#/SYS/CROPFLAT "XS800 YS480" 1 # set limits of screen #/SYS/CROPFLAT "XS800 YS480" 1 # set limits of screen
#/SYS/COMMOUSE "" 1 # COM mice detector #/SYS/LOADDRV "COMMOUSE" 1 # COM mice detector
#/SYS/DEVELOP/BOARD "" 1 # Load DEBUG board #/SYS/DEVELOP/BOARD "" 1 # Load DEBUG board
#/SYS/refrscrn "" 1 # Refresh screen #/SYS/refrscrn "" 1 # Refresh screen
/SYS/NETWORK/NETCFG A 1 # /SYS/NETWORK/NETCFG A 1 #

View File

@ -52,7 +52,7 @@ FASM_PROGRAMS:=\
calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \ calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \
calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \ calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \
colrdial:COLRDIAL:$(PROGS)/system/colrdial/color_dialog.asm \ colrdial:COLRDIAL:$(PROGS)/system/colrdial/color_dialog.asm \
commouse:COMMOUSE:$(PROGS)/system/commouse/trunk/commouse.asm \ loaddrv:LOADDRV:$(PROGS)/system/loaddrv/loaddrv.asm \
cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \ cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \
cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \ cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \
desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \ desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \

View File

@ -4,7 +4,7 @@
# If delay is negative, wait for termination of the spawned process. Otherwise, simply wait # If delay is negative, wait for termination of the spawned process. Otherwise, simply wait
# #
#/SYS/CROPFLAT "XS800 YS480" 1 # set limits of screen #/SYS/CROPFLAT "XS800 YS480" 1 # set limits of screen
#/SYS/COMMOUSE "" 1 # COM mice detector #/SYS/LOADDRV "COMMOUSE" 1 # COM mice detector
#/SYS/DEVELOP/BOARD "" 1 # Load DEBUG board #/SYS/DEVELOP/BOARD "" 1 # Load DEBUG board
#/SYS/refrscrn "" 1 # Refresh screen #/SYS/refrscrn "" 1 # Refresh screen
/SYS/NETWORK/NETCFG A 1 # /SYS/NETWORK/NETCFG A 1 #

View File

@ -52,7 +52,7 @@ FASM_PROGRAMS:=\
calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \ calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \
calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \ calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \
colrdial:COLRDIAL:$(PROGS)/system/colrdial/color_dialog.asm \ colrdial:COLRDIAL:$(PROGS)/system/colrdial/color_dialog.asm \
commouse:COMMOUSE:$(PROGS)/system/commouse/trunk/commouse.asm \ loaddrv:LOADDRV:$(PROGS)/system/loaddrv/loaddrv.asm \
cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \ cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \
cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \ cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \
desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \ desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \

View File

@ -4,7 +4,7 @@
# If delay is negative, wait for termination of the spawned process. Otherwise, simply wait # If delay is negative, wait for termination of the spawned process. Otherwise, simply wait
# #
#/SYS/CROPFLAT "XS800 YS480" 1 # set limits of screen #/SYS/CROPFLAT "XS800 YS480" 1 # set limits of screen
#/SYS/COMMOUSE "" 1 # COM mice detector #/SYS/LOADDRV "COMMOUSE" 1 # COM mice detector
#/SYS/DEVELOP/BOARD "" 1 # Load DEBUG board #/SYS/DEVELOP/BOARD "" 1 # Load DEBUG board
#/SYS/refrscrn "" 1 # Refresh screen #/SYS/refrscrn "" 1 # Refresh screen
/SYS/NETWORK/NETCFG A 1 # /SYS/NETWORK/NETCFG A 1 #

View File

@ -52,7 +52,7 @@ FASM_PROGRAMS:=\
calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \ calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \
calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \ calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \
colrdial:COLRDIAL:$(PROGS)/system/colrdial/color_dialog.asm \ colrdial:COLRDIAL:$(PROGS)/system/colrdial/color_dialog.asm \
commouse:COMMOUSE:$(PROGS)/system/commouse/trunk/commouse.asm \ loaddrv:LOADDRV:$(PROGS)/system/loaddrv/loaddrv.asm \
cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \ cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \
cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \ cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \
desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \ desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \

View File

@ -4,7 +4,7 @@
# If delay is negative, wait for termination of the spawned process. Otherwise, simply wait # If delay is negative, wait for termination of the spawned process. Otherwise, simply wait
# #
#/SYS/CROPFLAT "XS800 YS480" 1 # set limits of screen #/SYS/CROPFLAT "XS800 YS480" 1 # set limits of screen
#/SYS/COMMOUSE "" 1 # COM mice detector #/SYS/LOADDRV "COMMOUSE" 1 # COM mice detector
#/SYS/DEVELOP/BOARD "" 1 # Load DEBUG board #/SYS/DEVELOP/BOARD "" 1 # Load DEBUG board
#/SYS/refrscrn "" 1 # Refresh screen #/SYS/refrscrn "" 1 # Refresh screen
/SYS/NETWORK/NETCFG A 1 # /SYS/NETWORK/NETCFG A 1 #

View File

@ -52,7 +52,7 @@ FASM_PROGRAMS:=\
calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \ calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \
calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \ calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \
colrdial:COLRDIAL:$(PROGS)/system/colrdial/color_dialog.asm \ colrdial:COLRDIAL:$(PROGS)/system/colrdial/color_dialog.asm \
commouse:COMMOUSE:$(PROGS)/system/commouse/trunk/commouse.asm \ loaddrv:LOADDRV:$(PROGS)/system/loaddrv/loaddrv.asm \
cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \ cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \
cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \ cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \
desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \ desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \

View File

@ -4,7 +4,7 @@
# If delay is negative, wait for termination of the spawned process. Otherwise, simply wait # If delay is negative, wait for termination of the spawned process. Otherwise, simply wait
# #
#/SYS/CROPFLAT "XS800 YS480" 1 # set limits of screen #/SYS/CROPFLAT "XS800 YS480" 1 # set limits of screen
#/SYS/COMMOUSE "" 1 # COM mice detector #/SYS/LOADDRV "COMMOUSE" 1 # COM mice detector
#/SYS/DEVELOP/BOARD "" 1 # Load DEBUG board #/SYS/DEVELOP/BOARD "" 1 # Load DEBUG board
#/SYS/refrscrn "" 1 # Refresh screen #/SYS/refrscrn "" 1 # Refresh screen
/SYS/NETWORK/NETCFG A 1 # /SYS/NETWORK/NETCFG A 1 #

View File

@ -1,26 +0,0 @@
use32
db 'MENUET01'
dd 1
dd start
dd i_end
dd mem
dd mem
dd 0, 0
start:
push 68
pop eax
push 16
pop ebx
push drvname
pop ecx
int 0x40
push -1
pop eax
int 0x40
drvname db 'COM_MOUSE',0
i_end:
align 16
rb 16
mem:

View File

@ -1,16 +0,0 @@
#!gmake
# Macro
FASM=/opt/bin/fasm
KPACK=/opt/bin/kpack
LANG=lang.inc
FILE=commouse
SOURCE=${FILE}.asm
OUT=${FILE}.bin
en:
${FASM} ${SOURCE} ${OUT}
clean:
rm -f ${LANG} ${OUT}

View File

@ -0,0 +1,31 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; 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 path, 0
start:
mov eax, 68
mov ebx, 16
mov ecx, path
int 0x40
mov eax, -1
int 0x40
i_end:
path rb 1024
mem: