Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3013 → Rev 3014

/programs/develop/libraries/libs-dev/.test/003/test003.asm
8,7 → 8,7
 
include '../../../../../proc32.inc'
include '../../../../../macros.inc'
include '../dll.inc'
include '../../../../../dll.inc'
 
include '../../libio/libio.inc'
include '../../libimg/libimg.inc'
148,56 → 148,7
ret
 
;-----------------------------------------------------------------------------
proc mem.Alloc, size ;////////////////////////////////////////////////////////
;-----------------------------------------------------------------------------
push ebx ecx
mov ecx, [size]
add ecx, 4
mcall 68, 12
add ecx, -4
mov [eax], ecx
add eax, 4
pop ecx ebx
ret
endp
 
;-----------------------------------------------------------------------------
proc mem.ReAlloc, mptr, size ;////////////////////////////////////////////////
;-----------------------------------------------------------------------------
push ebx ecx edx
mov ecx, [size]
or ecx, ecx
jz @f
add ecx, 4
@@: mov edx, [mptr]
or edx, edx
jz @f
add edx, -4
@@: mcall 68, 20
or eax, eax
jz @f
add ecx, -4
mov [eax], ecx
add eax, 4
@@: pop edx ecx ebx
ret
endp
 
;-----------------------------------------------------------------------------
proc mem.Free, mptr ;/////////////////////////////////////////////////////////
;-----------------------------------------------------------------------------
push ebx ecx
mov ecx, [mptr]
or ecx, ecx
jz @f
add ecx, -4
@@: mcall 68, 13
pop ecx ebx
ret
endp
 
;-----------------------------------------------------------------------------
 
window_title db 'libimg to_rgb2 & encode demo',0
 
;input_file db '/hd0/1/in_1bpp.wbmp',0