Subversion Repositories Kolibri OS

Rev

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

Rev 1458 Rev 1464
Line 18... Line 18...
18
include '../../../../macros.inc'
18
include '../../../../macros.inc'
19
include '../../../../proc32.inc'
19
include '../../../../proc32.inc'
20
include 'bl_sys.mac'
20
include 'bl_sys.mac'
21
include 'box_lib.mac' ;macro which should make life easier :)
21
include 'box_lib.mac' ;macro which should make life easier :)
Line -... Line 22...
-
 
22
 
-
 
23
;-----------------------------------------------------------------------------
-
 
24
;ôóíêöèÿ äëÿ âûäåëåíèÿ ïàìÿòè
-
 
25
;input:
-
 
26
; ecx = size data
-
 
27
;otput:
-
 
28
; eax = pointer to memory
-
 
29
align 4
-
 
30
mem_Alloc:
-
 
31
  push ebx
-
 
32
  mov eax,68
-
 
33
  mov ebx,12
-
 
34
  int 0x40
-
 
35
  pop ebx
-
 
36
  ret
-
 
37
;ôóíêöèÿ äëÿ îñâîáîæäåíèÿ ïàìÿòè
-
 
38
;input:
-
 
39
; ecx = pointer to memory
-
 
40
align 4
-
 
41
proc mem_Free, mptr:dword
-
 
42
	push eax ebx ecx
-
 
43
	mov ecx,[mptr]
-
 
44
	cmp ecx,0
-
 
45
	jz @f
-
 
46
		mov eax,68
-
 
47
		mov ebx,13
-
 
48
		int 0x40
-
 
49
	@@:
-
 
50
	pop ecx ebx eax
-
 
51
	ret
-
 
52
endp
-
 
53
;ôóíêöèÿ äëÿ ïåðåðàñïðåäåëåíèÿ ïàìÿòè
-
 
54
;otput:
-
 
55
; eax = pointer to memory
-
 
56
align 4
-
 
57
proc mem_ReAlloc, mptr:dword, size:dword
-
 
58
	push ebx ecx edx
-
 
59
	mov	edx, [mptr]
-
 
60
	mov	ecx, [size]
-
 
61
	mcall 68, 20
-
 
62
	pop	edx ecx ebx
-
 
63
	ret
-
 
64
endp
22
 
65
 
23
;----------------------------------------------------
66
;----------------------------------------------------
24
;EditBox
67
;EditBox
25
;----------------------------------------------------
68
;----------------------------------------------------
26
align 16
69
align 16
Line 194... Line 237...
194
dd	sz_ted_but_undo,		ted_but_undo
237
dd	sz_ted_but_undo,		ted_but_undo
195
dd	sz_ted_but_redo,		ted_but_redo
238
dd	sz_ted_but_redo,		ted_but_redo
196
dd	sz_ted_but_reverse,		ted_but_reverse
239
dd	sz_ted_but_reverse,		ted_but_reverse
197
dd	sz_ted_but_find_next,		ted_but_find_next
240
dd	sz_ted_but_find_next,		ted_but_find_next
198
dd	sz_ted_text_colored,		ted_text_colored
241
dd	sz_ted_text_colored,		ted_text_colored
199
dd	sz_ted_version, 		0x00000001
242
dd	sz_ted_version, 		0x00000002
Line 200... Line 243...
200
 
243
 
Line 201... Line 244...
201
dd	0,0
244
dd	0,0