forked from KolibriOS/kolibrios
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:
parent
e30f7484da
commit
6c3d19779f
@ -52,7 +52,7 @@ FASM_PROGRAMS:=\
|
||||
calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \
|
||||
calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.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 \
|
||||
cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \
|
||||
desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \
|
||||
|
@ -4,7 +4,7 @@
|
||||
# If delay is negative, wait for termination of the spawned process. Otherwise, simply wait
|
||||
#
|
||||
#/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/refrscrn "" 1 # Refresh screen
|
||||
/SYS/NETWORK/NETCFG A 1 #
|
||||
|
@ -52,7 +52,7 @@ FASM_PROGRAMS:=\
|
||||
calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \
|
||||
calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.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 \
|
||||
cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \
|
||||
desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \
|
||||
|
@ -4,7 +4,7 @@
|
||||
# If delay is negative, wait for termination of the spawned process. Otherwise, simply wait
|
||||
#
|
||||
#/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/refrscrn "" 1 # Refresh screen
|
||||
/SYS/NETWORK/NETCFG A 1 #
|
||||
|
@ -52,7 +52,7 @@ FASM_PROGRAMS:=\
|
||||
calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \
|
||||
calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.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 \
|
||||
cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \
|
||||
desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \
|
||||
|
@ -4,7 +4,7 @@
|
||||
# If delay is negative, wait for termination of the spawned process. Otherwise, simply wait
|
||||
#
|
||||
#/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/refrscrn "" 1 # Refresh screen
|
||||
/SYS/NETWORK/NETCFG A 1 #
|
||||
|
@ -52,7 +52,7 @@ FASM_PROGRAMS:=\
|
||||
calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \
|
||||
calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.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 \
|
||||
cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \
|
||||
desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \
|
||||
|
@ -4,7 +4,7 @@
|
||||
# If delay is negative, wait for termination of the spawned process. Otherwise, simply wait
|
||||
#
|
||||
#/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/refrscrn "" 1 # Refresh screen
|
||||
/SYS/NETWORK/NETCFG A 1 #
|
||||
|
@ -52,7 +52,7 @@ FASM_PROGRAMS:=\
|
||||
calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \
|
||||
calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.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 \
|
||||
cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \
|
||||
desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \
|
||||
|
@ -4,7 +4,7 @@
|
||||
# If delay is negative, wait for termination of the spawned process. Otherwise, simply wait
|
||||
#
|
||||
#/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/refrscrn "" 1 # Refresh screen
|
||||
/SYS/NETWORK/NETCFG A 1 #
|
||||
|
@ -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:
|
@ -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}
|
31
programs/system/loaddrv/loaddrv.asm
Normal file
31
programs/system/loaddrv/loaddrv.asm
Normal 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:
|
Loading…
Reference in New Issue
Block a user