Subversion Repositories Kolibri OS

Rev

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

Rev 552 Rev 1632
Line 3... Line 3...
3
; eax- pointer to parameters
3
; eax- pointer to parameters
4
; ebx- pointer to path of file
4
; ebx- pointer to path of file
5
;OUT
5
;OUT
6
;value not returned
6
;value not returned
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
check_loading_from_parameters:
8
;check_loading_from_parameters:
9
 
9
 
Line 10... Line 10...
10
     cmp [eax],byte 0
10
;     cmp [eax],byte 0
11
     jz no_parameters
11
;     jz no_parameters
12
 
12
 
13
     ;copy file name
13
     ;copy file name
14
     mov esi,eax
14
;     mov esi,eax
Line 15... Line 15...
15
     mov edi,ebx
15
;     mov edi,ebx
Line 16... Line 16...
16
     mov ecx,256
16
;     mov ecx,256
Line 17... Line 17...
17
     rep movsb
17
;     rep movsb
18
 
-
 
19
     ;load file in memory
-
 
Line -... Line 18...
-
 
18
 
Line 20... Line 19...
20
     
19
     ;load file in memory
Line 21... Line 20...
21
     call load_picture
20
     
Line 81... Line 80...
81
	 exit_type_1:
80
	 exit_type_1:
Line 82... Line 81...
82
 
81
 
83
	 ;----------------------------------------------------------
82
	 ;----------------------------------------------------------
84
	 ;Get momory for unpacking picture and for picture's bufers
83
	 ;Get momory for unpacking picture and for picture's bufers
85
	 ;----------------------------------------------------------
-
 
86
	 mov eax,[Picture_SizeX]
-
 
87
	 mov ebx,[Picture_SizeY]
-
 
88
 
-
 
89
	 imul eax,ebx
-
 
90
	 lea eax,[eax+eax*2]
-
 
91
 
-
 
92
	 mov ebx,[ScreenPointer]
-
 
93
	 add ebx,(1200*1000*3)+50*(20*20*3)+500000
-
 
94
 
-
 
95
	 mov [PointerToPicture],ebx
-
 
96
	 mov [PointerToCopyPicture],ebx
-
 
97
	 mov [PointerToCopyPicture2],ebx
-
 
98
	 mov [PointerToEditBufer],ebx
-
 
99
	 mov [PointerToSpriteBufer],ebx
-
 
100
 
-
 
101
	 add [PointerToCopyPicture],eax
-
 
102
 
-
 
103
	 add [PointerToCopyPicture2],eax
-
 
104
	 add [PointerToCopyPicture2],eax
-
 
105
 
-
 
106
	 add [PointerToEditBufer],eax
-
 
107
	 add [PointerToEditBufer],eax
-
 
108
	 add [PointerToEditBufer],eax
-
 
109
 
-
 
110
	 add [PointerToSpriteBufer],eax
-
 
111
	 add [PointerToSpriteBufer],eax
-
 
112
	 add [PointerToSpriteBufer],eax
-
 
113
	 add [PointerToSpriteBufer],eax
-
 
114
 
84
	 ;----------------------------------------------------------
-
 
85
	 call GetMemory
115
	 call GetMemory
86
 
116
	 ;----------------------------------------------------------
87
	 ;----------------------------------------------------------
117
	 ;--------------------Load file in memory-------------------
88
	 ;--------------------Load file in memory-------------------
Line 118... Line 89...
118
	 ;----------------------------------------------------------
89
	 ;----------------------------------------------------------