Subversion Repositories Kolibri OS

Rev

Rev 1868 | Rev 1997 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1868 Rev 1996
Line 23... Line 23...
23
   dd	  0x01			  ; header version
23
   dd	  0x01			  ; header version
24
   dd	  START 		  ; start of code
24
   dd	  START 		  ; start of code
25
   dd	  I_END 		  ; size of image
25
   dd	  I_END 		  ; size of image
26
   dd	  i_end+0x2000			; memory for app (4 Kb)
26
   dd	  i_end+0x2000			; memory for app (4 Kb)
27
   dd	  i_end+0x2000			; esp
27
   dd	  i_end+0x2000			; esp
28
   dd	  0x0 , 0x0		  ; I_Param , I_Icon
28
   dd	  filename , 0x0	  ; I_Param , I_Icon
29
include '../../../macros.inc'
29
include '../../../macros.inc'
30
include 'debug.inc'
30
include 'debug.inc'
31
purge newline
31
purge newline
32
MAXSTRINGS = 16
32
MAXSTRINGS = 16
33
TMP = 80*(MAXSTRINGS+1)
33
TMP = 80*(MAXSTRINGS+1)
Line 34... Line 34...
34
 
34
 
-
 
35
START:				; start of execution
-
 
36
	mov	edi, filename
-
 
37
	cmp	byte [edi], 0
-
 
38
	jnz	param
-
 
39
	mov	esi, default_filename
-
 
40
@@:
-
 
41
	lodsb
-
 
42
	stosb
-
 
43
	test	al, al
-
 
44
	jnz	@b
Line 35... Line 45...
35
START:				; start of execution
45
param:
36
 
46
 
37
     mcall 60,1,ipcbuff,IPC_BUF+20
47
     mcall 60,1,ipcbuff,IPC_BUF+20
38
     mcall 40,1000111b
48
     mcall 40,1000111b
Line 586... Line 596...
586
		     dd      0x0     ; pointer to the buffer to write data
596
		     dd      0x0     ; pointer to the buffer to write data
587
		     db      0
597
		     db      0
588
		     dd      0	     ; pointer to the filename
598
		     dd      0	     ; pointer to the filename
Line 589... Line 599...
589
 
599
 
590
filepos  dd 0
600
filepos  dd 0
591
filename db '/sys/boardlog.txt',0
601
default_filename db '/sys/boardlog.txt',0
592
tmp	 db 0
602
tmp	 db 0
Line 637... Line 647...
637
     pid  dd ?
647
     pid  dd ?
638
     xstart dd ?
648
     xstart dd ?
639
     dump_len dd ?
649
     dump_len dd ?
640
     sc system_colors
650
     sc system_colors
641
i_end:
651
i_end:
-
 
652
 
-
 
653
filename	rb	256