forked from KolibriOS/kolibrios
board: set log file name from the command line
git-svn-id: svn://kolibrios.org@1996 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2d6dc1b704
commit
0e6655a846
@ -25,7 +25,7 @@ include 'lang.inc'
|
|||||||
dd I_END ; size of image
|
dd I_END ; size of image
|
||||||
dd i_end+0x2000 ; memory for app (4 Kb)
|
dd i_end+0x2000 ; memory for app (4 Kb)
|
||||||
dd i_end+0x2000 ; esp
|
dd i_end+0x2000 ; esp
|
||||||
dd 0x0 , 0x0 ; I_Param , I_Icon
|
dd filename , 0x0 ; I_Param , I_Icon
|
||||||
include '../../../macros.inc'
|
include '../../../macros.inc'
|
||||||
include 'debug.inc'
|
include 'debug.inc'
|
||||||
purge newline
|
purge newline
|
||||||
@ -33,6 +33,16 @@ MAXSTRINGS = 16
|
|||||||
TMP = 80*(MAXSTRINGS+1)
|
TMP = 80*(MAXSTRINGS+1)
|
||||||
|
|
||||||
START: ; start of execution
|
START: ; start of execution
|
||||||
|
mov edi, filename
|
||||||
|
cmp byte [edi], 0
|
||||||
|
jnz param
|
||||||
|
mov esi, default_filename
|
||||||
|
@@:
|
||||||
|
lodsb
|
||||||
|
stosb
|
||||||
|
test al, al
|
||||||
|
jnz @b
|
||||||
|
param:
|
||||||
|
|
||||||
mcall 60,1,ipcbuff,IPC_BUF+20
|
mcall 60,1,ipcbuff,IPC_BUF+20
|
||||||
mcall 40,1000111b
|
mcall 40,1000111b
|
||||||
@ -588,7 +598,7 @@ InfoStructure:
|
|||||||
dd 0 ; pointer to the filename
|
dd 0 ; pointer to the filename
|
||||||
|
|
||||||
filepos dd 0
|
filepos dd 0
|
||||||
filename db '/sys/boardlog.txt',0
|
default_filename db '/sys/boardlog.txt',0
|
||||||
tmp db 0
|
tmp db 0
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@ -639,3 +649,5 @@ I_END:
|
|||||||
dump_len dd ?
|
dump_len dd ?
|
||||||
sc system_colors
|
sc system_colors
|
||||||
i_end:
|
i_end:
|
||||||
|
|
||||||
|
filename rb 256
|
||||||
|
Loading…
Reference in New Issue
Block a user