Subversion Repositories Kolibri OS

Rev

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

Rev 2359 Rev 2501
Line 14... Line 14...
14
include '../../../develop/libraries/box_lib/load_lib.mac'
14
include '../../../develop/libraries/box_lib/load_lib.mac'
15
include '../../nu_pogodi/trunk/mem.inc'
15
include '../../nu_pogodi/trunk/mem.inc'
16
include '../../nu_pogodi/trunk/dll.inc'
16
include '../../nu_pogodi/trunk/dll.inc'
Line 17... Line 17...
17
 
17
 
18
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
18
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
Line 19... Line 19...
19
hed db 'Life 20.02.12',0 ;¯®¤¯¨áì ®ª­ 
19
hed db 'Life 23.03.12',0 ;¯®¤¯¨áì ®ª­ 
20
 
20
 
21
struct FileInfoBlock
21
struct FileInfoBlock
22
	Function dd ?
22
	Function dd ?
Line 327... Line 327...
327
		mov ecx,dword[memCell]
327
		mov ecx,dword[memCell]
328
		mov ebx,dword[b_sort]
328
		mov ebx,dword[b_sort]
329
		mov edx,ebx
329
		mov edx,ebx
330
		shl edx,2
330
		shl edx,2
331
		add edx,ecx
331
		add edx,ecx
332
		inc ebx
-
 
333
		mov ecx,dword[ecx]
332
		mov ecx,dword[ecx]
334
		.cycle_b: ;for(i=b_sort+1;i<=fristC;i++)
333
		.cycle_b: ;for(i=b_sort+1;i<=fristC;i++)
-
 
334
			inc ebx
-
 
335
			cmp ebx,ecx
-
 
336
			jg .cycle_e
335
			add edx,4
337
			add edx,4
336
			get_cell_offset edi,dword[edx]
338
			get_cell_offset edi,dword[edx]
337
			mov esi,dword[x]
339
			mov esi,dword[x]
338
			cmp dword[edi],esi ;+0 = .x
340
			cmp dword[edi],esi ;+0 = .x
339
			jne .if_e
341
			jne .if_e
Line 342... Line 344...
342
			jne .if_e
344
			jne .if_e
343
				;if(cell[memCell[i]].x==x && cell[memCell[i]].y==y){
345
				;if(cell[memCell[i]].x==x && cell[memCell[i]].y==y){
344
				mov eax,dword[edx] ;fnd=memCell[i];
346
				mov eax,dword[edx] ;fnd=memCell[i];
345
				jmp .cycle_e ;break;
347
				jmp .cycle_e ;break;
346
			.if_e:
348
			.if_e:
347
			inc ebx
-
 
348
			cmp ebx,ecx
-
 
349
			jle .cycle_b
349
			jmp .cycle_b
350
		.cycle_e:
350
		.cycle_e:
351
		pop esi edi edx ecx ebx
351
		pop esi edi edx ecx ebx
352
	@@:
352
	@@:
353
	.fun_e:
353
	.fun_e:
354
	ret
354
	ret
Line 884... Line 884...
884
	mov [memCell],eax
884
	mov [memCell],eax
885
	stdcall mem.Alloc,(COL_MEM+1)*4
885
	stdcall mem.Alloc,(COL_MEM+1)*4
886
	mov [CellColors],eax
886
	mov [CellColors],eax
887
	load_image_file fn_toolbar, image_data_toolbar,IMAGE_TOOLBAR_SIZE
887
	load_image_file fn_toolbar, image_data_toolbar,IMAGE_TOOLBAR_SIZE
Line -... Line 888...
-
 
888
 
888
 
889
	;­ áâனª  梥⮢ ï祥ª
889
	stdcall pole_init_colors, 0xffffff,0xff0000,0x0000ff
890
	stdcall pole_init_colors, 0xffffd0,0xff0000,0x0000ff
890
	call pole_clear
891
	call pole_clear
Line 891... Line 892...
891
	call pole_paint ;à¨á®¢ ­¨¥ ¯®«ï ¢ ¡ãä¥à¥ (­¥ ­  íªà ­¥)
892
	call pole_paint ;à¨á®¢ ­¨¥ ¯®«ï ¢ ¡ãä¥à¥ (­¥ ­  íªà ­¥)
892
 
893