2016-03-16 01:30:18 +03:00
|
|
|
|
|
|
|
|
|
mem_screen equ 1200*1000*3 ;ࠧ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>࠭<EFBFBD>
|
2016-03-24 18:54:52 +03:00
|
|
|
|
mem_panel_but equ 50*(20*20*3) ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㬥<EFBFBD>⮢
|
|
|
|
|
mem_panel_zoom equ 6*(18*21*3) ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⠡<EFBFBD><EFBFBD>
|
|
|
|
|
mem_panel_all equ mem_panel_but+mem_panel_zoom ;ࠧ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㬥<EFBFBD>⮢
|
2016-03-16 01:30:18 +03:00
|
|
|
|
mem_flood_f equ 500000 ;ࠧ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD> ⠪<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2016-03-24 18:54:52 +03:00
|
|
|
|
mem_offs_shape equ 4807*4 ;ᬥ饭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> ࠧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᨢ<EFBFBD> ReserveArray
|
|
|
|
|
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ਬ<EFBFBD>୮<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> ।<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
|
|
|
|
;
|
|
|
|
|
; mem_flood_f <EFBFBD>ਬ<EFBFBD>୮ ࠢ<EFBFBD><EFBFBD> 4*((1200^2+1000^2)^0.5)*3*(1+5*5)
|
|
|
|
|
; <EFBFBD>.<EFBFBD>. 4 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>࠭<EFBFBD> 1200 <EFBFBD><EFBFBD> 1000 㬭<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 26.
|
|
|
|
|
; <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᥫ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>㥬<EFBFBD><EFBFBD> 䨣<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⠪<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䮭<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ࠦ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>⮬ ⮣<EFBFBD>
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᨬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠧ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5*5 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> 26 = 1 + 5*5.
|
|
|
|
|
;
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ReserveArray <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 2 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 1-<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>祪
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD>㥬<EFBFBD><EFBFBD> 䨣<EFBFBD><EFBFBD><EFBFBD>, 2-<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⪮<EFBFBD> 䮭<EFBFBD> 5*5
|
|
|
|
|
; <EFBFBD>ਪ९<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>窥 <EFBFBD><EFBFBD><EFBFBD>㥬<EFBFBD><EFBFBD> 䨣<EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>⮩ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ந<EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD>ய<EFBFBD><EFBFBD>樨 1 <EFBFBD> 26,
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ਬ<EFBFBD>୮ ࠢ<EFBFBD><EFBFBD>: mem_flood_f / (1+5*5) <EFBFBD><EFBFBD><EFBFBD> 4807*4.
|
2016-03-16 01:30:18 +03:00
|
|
|
|
|
2006-12-29 17:50:24 +03:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--------change size of memory which use program-----------
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
GetMemory:
|
2010-10-05 00:40:19 +04:00
|
|
|
|
pusha
|
2010-09-30 17:20:36 +04:00
|
|
|
|
mov ecx,[Picture_SizeX]
|
|
|
|
|
mov edx,[Picture_SizeY]
|
2016-03-24 18:54:52 +03:00
|
|
|
|
imul ecx,edx
|
2010-09-30 17:20:36 +04:00
|
|
|
|
lea ecx,[ecx+ecx*2]
|
2016-03-16 01:30:18 +03:00
|
|
|
|
lea ecx,[ecx+ecx*4] ;(Picture_SizeX*Picture_SizeY*3)*5
|
2016-03-24 18:54:52 +03:00
|
|
|
|
add ecx,mem_screen+mem_panel_all+mem_flood_f
|
2016-03-16 01:30:18 +03:00
|
|
|
|
mcall SF_SYS_MISC,SSF_MEM_REALLOC,,[ScreenPointer]
|
|
|
|
|
test eax,eax
|
2016-03-24 18:54:52 +03:00
|
|
|
|
jnz .have_new_memory
|
|
|
|
|
;mov esi,sound_havent_memory
|
|
|
|
|
;call sound
|
|
|
|
|
notify_window_run txt_not_memory
|
2010-10-05 00:40:19 +04:00
|
|
|
|
popa
|
|
|
|
|
add esp,4
|
2010-09-30 17:20:36 +04:00
|
|
|
|
jmp still
|
|
|
|
|
|
2016-03-24 18:54:52 +03:00
|
|
|
|
.have_new_memory:
|
2010-09-30 17:20:36 +04:00
|
|
|
|
mov [ScreenPointer],eax
|
2016-03-24 18:54:52 +03:00
|
|
|
|
call prepare_data_pointers
|
2010-10-05 00:40:19 +04:00
|
|
|
|
popa
|
2010-09-30 17:20:36 +04:00
|
|
|
|
ret
|
|
|
|
|
;---------------------------------------------------------
|
|
|
|
|
prepare_data_pointers:
|
|
|
|
|
mov eax,[Picture_SizeX]
|
|
|
|
|
mov ebx,[Picture_SizeY]
|
|
|
|
|
imul eax,ebx
|
|
|
|
|
lea eax,[eax+eax*2]
|
|
|
|
|
mov ebx,[ScreenPointer]
|
2016-03-24 18:54:52 +03:00
|
|
|
|
add ebx,mem_screen+mem_panel_all+mem_flood_f
|
2010-09-30 17:20:36 +04:00
|
|
|
|
|
|
|
|
|
mov [PointerToPicture],ebx
|
|
|
|
|
mov [PointerToCopyPicture],ebx
|
|
|
|
|
mov [PointerToCopyPicture2],ebx
|
|
|
|
|
mov [PointerToEditBufer],ebx
|
|
|
|
|
mov [PointerToSpriteBufer],ebx
|
2006-12-29 17:50:24 +03:00
|
|
|
|
|
2010-09-30 17:20:36 +04:00
|
|
|
|
add [PointerToCopyPicture],eax
|
2006-12-29 17:50:24 +03:00
|
|
|
|
|
2010-09-30 17:20:36 +04:00
|
|
|
|
add [PointerToCopyPicture2],eax
|
|
|
|
|
add [PointerToCopyPicture2],eax
|
2006-12-29 17:50:24 +03:00
|
|
|
|
|
2010-09-30 17:20:36 +04:00
|
|
|
|
add [PointerToEditBufer],eax
|
|
|
|
|
add [PointerToEditBufer],eax
|
|
|
|
|
add [PointerToEditBufer],eax
|
2006-12-29 17:50:24 +03:00
|
|
|
|
|
2016-03-12 14:05:16 +03:00
|
|
|
|
shl eax,2
|
2010-09-30 17:20:36 +04:00
|
|
|
|
add [PointerToSpriteBufer],eax
|
2010-10-05 00:40:19 +04:00
|
|
|
|
|
|
|
|
|
mov eax,[ScreenPointer]
|
2016-03-24 18:54:52 +03:00
|
|
|
|
add eax,mem_screen+mem_panel_all
|
2010-10-05 00:40:19 +04:00
|
|
|
|
mov [PointerToPalette],eax
|
|
|
|
|
mov [ReserveArray],eax
|
2016-03-16 16:23:19 +03:00
|
|
|
|
|
2016-03-19 12:57:37 +03:00
|
|
|
|
call scrollbar_move_00 ;<EFBFBD><EFBFBD><EFBFBD>㫥<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-09-30 17:20:36 +04:00
|
|
|
|
ret
|
|
|
|
|
;---------------------------------------------------------
|