20,6 → 20,49 |
include 'bl_sys.mac' |
include 'box_lib.mac' ;macro which should make life easier :) |
|
;----------------------------------------------------------------------------- |
;ôóíêöèÿ äëÿ âûäåëåíèÿ ïàìÿòè |
;input: |
; ecx = size data |
;otput: |
; eax = pointer to memory |
align 4 |
mem_Alloc: |
push ebx |
mov eax,68 |
mov ebx,12 |
int 0x40 |
pop ebx |
ret |
;ôóíêöèÿ äëÿ îñâîáîæäåíèÿ ïàìÿòè |
;input: |
; ecx = pointer to memory |
align 4 |
proc mem_Free, mptr:dword |
push eax ebx ecx |
mov ecx,[mptr] |
cmp ecx,0 |
jz @f |
mov eax,68 |
mov ebx,13 |
int 0x40 |
@@: |
pop ecx ebx eax |
ret |
endp |
;ôóíêöèÿ äëÿ ïåðåðàñïðåäåëåíèÿ ïàìÿòè |
;otput: |
; eax = pointer to memory |
align 4 |
proc mem_ReAlloc, mptr:dword, size:dword |
push ebx ecx edx |
mov edx, [mptr] |
mov ecx, [size] |
mcall 68, 20 |
pop edx ecx ebx |
ret |
endp |
|
;---------------------------------------------------- |
;EditBox |
;---------------------------------------------------- |
196,7 → 239,7 |
dd sz_ted_but_reverse, ted_but_reverse |
dd sz_ted_but_find_next, ted_but_find_next |
dd sz_ted_text_colored, ted_text_colored |
dd sz_ted_version, 0x00000001 |
dd sz_ted_version, 0x00000002 |
|
dd 0,0 |
|