Subversion Repositories Kolibri OS

Rev

Rev 2076 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2076 Rev 7026
Line 32... Line 32...
32
;Š®¤ ¯à®£à ¬¬ë
32
;Š®¤ ¯à®£à ¬¬ë
33
START:
33
START:
34
;ˆ­¨æ¨ «¨§¨à㥬 ªãçã
34
;ˆ­¨æ¨ «¨§¨à㥬 ªãçã
35
	mcall	68,11
35
	mcall	68,11
36
;	call	get_screen_params
36
;	call	get_screen_params
37
;	mov	eax,0x0000001C
37
	mov	eax,params
38
;	cmp	eax,0x0
38
	cmp	[eax],byte 0x0
39
;	je	start_with_internal_text  ;  à ¬¥âàë ­¥ § ¤ ­ë
39
	je	start_with_internal_text  ;  à ¬¥âàë ­¥ § ¤ ­ë
Line 40... Line 40...
40
 
40
 
41
;  à ¬¥âà § ¤ ­! ëâ ¥¬áï í⨬ ¢®á¯®«ì§®¢ âìáï
41
;  à ¬¥âà § ¤ ­! ëâ ¥¬áï í⨬ ¢®á¯®«ì§®¢ âìáï
42
; ¥®¡å®¤¨¬® ®¯à¥¤¥«¨âì à §¬¥à ä ©« ... ‚¯¥àñ¤!!!
42
; ¥®¡å®¤¨¬® ®¯à¥¤¥«¨âì à §¬¥à ä ©« ... ‚¯¥àñ¤!!!
43
	mov	eax,5
43
;	mov	eax,5
44
	mov	[arg1],eax
44
;	mov	[arg1],eax
45
	xor	eax,eax
45
;	xor	eax,eax
46
	mov	[arg2],eax
46
;	mov	[arg2],eax
47
	mov	[arg3],eax
47
;	mov	[arg3],eax
48
	mov	[arg4],eax
48
;	mov	[arg4],eax
49
	mov	eax,filedatastruct
49
;	mov	eax,filedatastruct
50
	mov	[arg5],eax
50
;	mov	[arg5],eax
51
	mov	eax,[0x0000001C]
51
;	mov	eax,[0x0000001C]
52
	mov	[arg7],eax
52
;	mov	[arg7],eax
53
	mcall	70,filestruct
53
;	mcall	70,filestruct
54
	test	eax,eax
54
;	test	eax,eax
55
	jne	start_with_internal_text	;Žè¨¡ª 
55
;	jne	start_with_internal_text	;Žè¨¡ª 
56
	mov	eax, dword [size]
56
;	mov	eax, dword [size]
57
	mov	[filesize], eax  ;⥯¥àì à §¬¥à ä ©«  ã ­ á ¢ filesize
57
;	mov	[filesize], eax  ;⥯¥àì à §¬¥à ä ©«  ã ­ á ¢ filesize
58
;‚뤥«ï¥¬ ¡«®ª ¯ ¬ï⨠¯®¤ ä ©«
58
;;‚뤥«ï¥¬ ¡«®ª ¯ ¬ï⨠¯®¤ ä ©«
59
	mov	ecx, [filesize]
59
;	mov	ecx, [filesize]
60
	inc	ecx  ;‚뤥«¨¬ ¤®¯®«­¨â¥«ì­® ®¤¨­ ¡ ©â ¤«ï ⮣®, çâ®¡ë ¤®¡ ¢¨âì 0xFF
60
;	inc	ecx  ;‚뤥«¨¬ ¤®¯®«­¨â¥«ì­® ®¤¨­ ¡ ©â ¤«ï ⮣®, çâ®¡ë ¤®¡ ¢¨âì 0xFF
61
		 ;§ é¨â  ®â "¡¨âëå" KLA-ä ©«®¢
61
;		 ;§ é¨â  ®â "¡¨âëå" KLA-ä ©«®¢
62
	mcall	68,12
62
;	mcall	68,12
63
	mov	[datastart], eax	;‚ ¯¥à¥¬¥­­®© „ â ‘â àâ ⥯¥àì ­ å®¤¨âáï 㪠§ â¥«ì
63
;	mov	[datastart], eax	;‚ ¯¥à¥¬¥­­®© „ â ‘â àâ ⥯¥àì ­ å®¤¨âáï 㪠§ â¥«ì
64
	add	eax, [filesize]
64
;	add	eax, [filesize]
65
	mov	bh, 0xFF
65
;	mov	bh, 0xFF
66
	mov	[eax], bh
66
;	mov	[eax], bh
67
;‘®¡á⢥­­®, áç¨â뢠¥¬ ä ©« ¢ ¯ ¬ïâì
67
;;‘®¡á⢥­­®, áç¨â뢠¥¬ ä ©« ¢ ¯ ¬ïâì
68
	xor	eax,eax
68
;	xor	eax,eax
69
	mov	[arg1],eax   ;®¬¥à ¯®¤ä㭪樨
69
;	mov	[arg1],eax   ;®¬¥à ¯®¤ä㭪樨
70
	mov	[arg2],eax   ;‘¬¥é¥­¨¥ ¢ ä ©«¥
70
;	mov	[arg2],eax   ;‘¬¥é¥­¨¥ ¢ ä ©«¥
71
	mov	[arg3],eax   ;‘â à訩 dword ᬥ饭¨ï
71
;	mov	[arg3],eax   ;‘â à訩 dword ᬥ饭¨ï
72
	mov	eax,[filesize]
72
;	mov	eax,[filesize]
73
	mov	[arg4],eax   ; §¬¥à ä ©« 
73
;	mov	[arg4],eax   ; §¬¥à ä ©« 
74
	mov	eax,[datastart]
74
;	mov	eax,[datastart]
75
	mov	[arg5],eax   ;“ª § â¥«ì ­  ¤ ­­ë¥
75
;	mov	[arg5],eax   ;“ª § â¥«ì ­  ¤ ­­ë¥
76
	mov	eax,par
76
;	mov	eax,par
77
	mov	[arg7],eax   ;“ª § â¥«ì ­  ASCIIZ-áâபã
77
;	mov	[arg7],eax   ;“ª § â¥«ì ­  ASCIIZ-áâபã
-
 
78
;	mcall	70,filestruct
-
 
79
  
-
 
80
 mov    ecx, eax
-
 
81
 mov    eax, 68
-
 
82
 mov    ebx, 27  
-
 
83
 int    64
-
 
84
 mov	   [datastart], eax  
-
 
85
 mov    [filesize], edx  
78
	mcall	70,filestruct
86
 
79
	test	eax,eax
87
	test	eax,eax
80
	je	initialize_variables
88
	jnz	initialize_variables
81
start_with_internal_text:
89
start_with_internal_text:
82
	mov	edx, string
90
	mov	edx, string
83
	mov	[datastart], edx
91
	mov	[datastart], edx
84
;	mov	edx, string         ; ˆá¯®«ì§ã¥¬ ¢áâ஥­­ë© ⥪áâ
92
;	mov	edx, string         ; ˆá¯®«ì§ã¥¬ ¢áâ஥­­ë© ⥪áâ