forked from KolibriOS/kolibrios
launcher: quoted parameters; allow tabs in place of spaces
git-svn-id: svn://kolibrios.org@1999 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0958897f0e
commit
8222dd469c
@ -1,16 +1,16 @@
|
|||||||
# Syntaxis is: <Program_Name> <Parameter(s)> <Delay_Time>
|
# Syntaxis is: <Program_Name> <Parameter(s)> <Delay_Time>
|
||||||
# Use <NO> in parameter value if program is started without parameters.
|
# Use "parameter value" for parameters with spaces. Use "" if no parameter is required.
|
||||||
# Delay time means how much the system should wait, before running the next line. It is measured in 1/100 seconds.
|
# Delay time means how much the system should wait, before running the next line. It is measured in 1/100 seconds.
|
||||||
# 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
|
||||||
#
|
#
|
||||||
#/RD/1/COMMOUSE <NO> 1 # COM mice detector
|
#/RD/1/COMMOUSE "" 1 # COM mice detector
|
||||||
/RD/1/MEDIA/KIV \T__background.gif -1 # Desktop background image
|
/RD/1/MEDIA/KIV \T__background.gif -1 # Desktop background image
|
||||||
/RD/1/@CLIP <NO> 1 # Clipboard
|
/RD/1/@CLIP "" 1 # Clipboard
|
||||||
/RD/1/@RB <NO> 1 # Desktop right-click menu
|
/RD/1/@RB "" 1 # Desktop right-click menu
|
||||||
/RD/1/@SS <NO> 1 # Screensaver
|
/RD/1/@SS "" 1 # Screensaver
|
||||||
/RD/1/@PANEL <NO> 1 # Start panel
|
/RD/1/@PANEL "" 1 # Start panel
|
||||||
/RD/1/DEVELOP/BOARD <NO> 1 # Load DEBUG board
|
/RD/1/DEVELOP/BOARD "" 1 # Load DEBUG board
|
||||||
/RD/1/SETUP BOOT 1 # Load device settings
|
/RD/1/SETUP BOOT 1 # Load device settings
|
||||||
/RD/1/ICON BOOT 1 # Multithread icon
|
/RD/1/ICON BOOT 1 # Multithread icon
|
||||||
/RD/1/NETWORK/ZEROCONF <NO> 1 # Network configuration
|
/RD/1/NETWORK/ZEROCONF "" 1 # Network configuration
|
||||||
### Hello, ASM World! ###
|
### Hello, ASM World! ###
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
# Syntaxis is: <Program_Name> <Parameter(s)> <Delay_Time>
|
# Syntaxis is: <Program_Name> <Parameter(s)> <Delay_Time>
|
||||||
# Use <NO> in parameter value if program is started without parameters.
|
# Use "parameter value" for parameters with spaces. Use "" if no parameter is required.
|
||||||
# Delay time means how much the system should wait, before running the next line. It is measured in 1/100 seconds.
|
# Delay time means how much the system should wait, before running the next line. It is measured in 1/100 seconds.
|
||||||
# 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
|
||||||
#
|
#
|
||||||
/RD/1/COMMOUSE <NO> 1 # COM mice detector
|
/RD/1/COMMOUSE "" 1 # COM mice detector
|
||||||
/RD/1/DRIVERS/ATIKMS -l/rd/1/drivers/ati.log -1 #ATI videodriver loader
|
/RD/1/DRIVERS/ATIKMS -l/rd/1/drivers/ati.log -1 #ATI videodriver loader
|
||||||
/RD/1/MEDIA/KIV \T__background.gif -1 # Desktop background image
|
/RD/1/MEDIA/KIV \T__background.gif -1 # Desktop background image
|
||||||
/RD/1/@CLIP <NO> 1 # Clipboard
|
/RD/1/@CLIP "" 1 # Clipboard
|
||||||
/RD/1/@RB <NO> 1 # Desktop right-click menu
|
/RD/1/@RB "" 1 # Desktop right-click menu
|
||||||
/RD/1/@SS <NO> 1 # Screensaver
|
/RD/1/@SS "" 1 # Screensaver
|
||||||
/RD/1/@PANEL <NO> 1 # Start panel
|
/RD/1/@PANEL "" 1 # Start panel
|
||||||
#/RD/1/DEVELOP/BOARD <NO> 1 # Load DEBUG board
|
#/RD/1/DEVELOP/BOARD "" 1 # Load DEBUG board
|
||||||
/RD/1/SETUP BOOT 1 # Load device settings
|
/RD/1/SETUP BOOT 1 # Load device settings
|
||||||
/RD/1/ICON BOOT 1 # Multithread icon
|
/RD/1/ICON BOOT 1 # Multithread icon
|
||||||
/RD/1/NETWORK/ZEROCONF <NO> 1 # Network configuration
|
/RD/1/NETWORK/ZEROCONF "" 1 # Network configuration
|
||||||
### Hello, ASM World! ###
|
### Hello, ASM World! ###
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
# Syntaxis is: <Program_Name> <Parameter(s)> <Delay_Time>
|
# Syntaxis is: <Program_Name> <Parameter(s)> <Delay_Time>
|
||||||
# Use <NO> in parameter value if program is started without parameters.
|
# Use "parameter value" for parameters with spaces. Use "" if no parameter is required.
|
||||||
# Delay time means how much the system should wait, before running the next line. It is measured in 1/100 seconds.
|
# Delay time means how much the system should wait, before running the next line. It is measured in 1/100 seconds.
|
||||||
# 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
|
||||||
#
|
#
|
||||||
/RD/1/COMMOUSE <NO> 1 # COM mice detector
|
/RD/1/COMMOUSE "" 1 # COM mice detector
|
||||||
/RD/1/DRIVERS/ATIKMS -l/rd/1/drivers/ati.log -1 #ATI videodriver loader
|
/RD/1/DRIVERS/ATIKMS -l/rd/1/drivers/ati.log -1 #ATI videodriver loader
|
||||||
/RD/1/MEDIA/KIV \T__background.gif -1 # Desktop background image
|
/RD/1/MEDIA/KIV \T__background.gif -1 # Desktop background image
|
||||||
/RD/1/@CLIP <NO> 1 # Clipboard
|
/RD/1/@CLIP "" 1 # Clipboard
|
||||||
/RD/1/@RB <NO> 1 # Desktop right-click menu
|
/RD/1/@RB "" 1 # Desktop right-click menu
|
||||||
/RD/1/@SS <NO> 1 # Screensaver
|
/RD/1/@SS "" 1 # Screensaver
|
||||||
/RD/1/@PANEL <NO> 1 # Start panel
|
/RD/1/@PANEL "" 1 # Start panel
|
||||||
#/RD/1/DEVELOP/BOARD <NO> 1 # Load DEBUG board
|
#/RD/1/DEVELOP/BOARD "" 1 # Load DEBUG board
|
||||||
/RD/1/SETUP BOOT 1 # Load device settings
|
/RD/1/SETUP BOOT 1 # Load device settings
|
||||||
/RD/1/ICON BOOT 1 # Multithread icon
|
/RD/1/ICON BOOT 1 # Multithread icon
|
||||||
/RD/1/NETWORK/ZEROCONF <NO> 1 # Network configuration
|
/RD/1/NETWORK/ZEROCONF "" 1 # Network configuration
|
||||||
### Hello, ASM World! ###
|
### Hello, ASM World! ###
|
||||||
|
@ -115,18 +115,32 @@ START: ; start of execution
|
|||||||
;dpd esi
|
;dpd esi
|
||||||
;dps <13,10>
|
;dps <13,10>
|
||||||
add esi, file_data
|
add esi, file_data
|
||||||
|
cmp byte [esi], '"'
|
||||||
|
jz .quoted
|
||||||
.start:
|
.start:
|
||||||
cmp esi, [fileend]
|
cmp esi, [fileend]
|
||||||
jae exit
|
jae exit
|
||||||
lodsb
|
lodsb
|
||||||
cmp al, ' '
|
cmp al, ' '
|
||||||
je .finish
|
jbe .finish
|
||||||
stosb
|
stosb
|
||||||
inc [position]
|
inc [position]
|
||||||
jmp .start
|
jmp .start
|
||||||
.finish:
|
.finish:
|
||||||
popad
|
popad
|
||||||
ret
|
ret
|
||||||
|
.quoted:
|
||||||
|
inc esi
|
||||||
|
inc [position]
|
||||||
|
.quoted.start:
|
||||||
|
cmp esi, [fileend]
|
||||||
|
jae exit
|
||||||
|
lodsb
|
||||||
|
inc [position]
|
||||||
|
cmp al, '"'
|
||||||
|
je .finish
|
||||||
|
stosb
|
||||||
|
jmp .quoted.start
|
||||||
|
|
||||||
|
|
||||||
get_number:
|
get_number:
|
||||||
@ -176,7 +190,7 @@ START: ; start of execution
|
|||||||
jae .finish
|
jae .finish
|
||||||
lodsb
|
lodsb
|
||||||
cmp al, ' '
|
cmp al, ' '
|
||||||
jne .finish
|
ja .finish
|
||||||
inc [position]
|
inc [position]
|
||||||
jmp .start
|
jmp .start
|
||||||
.finish:
|
.finish:
|
||||||
|
Loading…
Reference in New Issue
Block a user