mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-27 00:39:41 +03:00
4daae89053
updated sysfunc.txt *programs new icons and logo for CPUID and ICON added new version of @ICON and ICONMNGR fixes in iconedit and calendar from DedOK new algoritm of fill background in pic4 all apps (fasm-writen only) rewriten to use common macros.inc for easy recompile in fastcall mode (there is a bug in https; run need rewrite to use common macros.inc) small fixes in build_all.bat script git-svn-id: svn://kolibrios.org@485 a494cfbc-eb01-0410-851d-a64ba20cac60
29 lines
656 B
PHP
29 lines
656 B
PHP
;----------------------------------------------------------
|
|
;--------change size of memory which use program-----------
|
|
;----------------------------------------------------------
|
|
GetMemory:
|
|
pushad
|
|
mov eax,64
|
|
mov ebx,1
|
|
mov ecx,[Picture_SizeX]
|
|
mov edx,[Picture_SizeY]
|
|
imul ecx,edx
|
|
lea ecx,[ecx+ecx*2]
|
|
lea ecx,[ecx+ecx*4] ;(Picture_SizeX*Picture_SizeY*3)*5
|
|
add ecx,[ScreenPointer]
|
|
add ecx,(1200*1000)*3+50*(20*20*3)+500000+16000+0x4000
|
|
add ecx,[extended_memory]
|
|
mcall
|
|
|
|
test eax,eax
|
|
jz have_new_memory
|
|
|
|
mov esi,sound_havent_memory
|
|
call sound
|
|
|
|
jmp still
|
|
|
|
have_new_memory:
|
|
popad
|
|
ret
|