Subversion Repositories Kolibri OS

Rev

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

Rev 1476 Rev 1489
Line 15... Line 15...
15
 
15
 
16
include '../../macros.inc'
16
include '../../macros.inc'
17
include '../../proc32.inc'
17
include '../../proc32.inc'
18
include '../../develop/libraries/box_lib/load_lib.mac'
18
include '../../develop/libraries/box_lib/load_lib.mac'
19
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
-
 
-
 
19
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
20
 
20
include '../t_edit/mem.inc'
21
include 'te_data.inc'
21
include 'te_data.inc'
Line 22... Line 22...
22
include 'te_work.inc' ;text work functions
22
include 'te_work.inc' ;text work functions
Line 23... Line 23...
23
 
23
 
24
@use_library
24
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,0
25
 
25
 
26
align 4
26
align 4
Line 37... Line 37...
37
 
37
 
Line 38... Line 38...
38
  mcall 40,0x27
38
  mcall 40,0x27
39
 
39
 
40
;-------------------------------------------------
40
;-------------------------------------------------
41
  mov ecx,maxSyntaxFileSize
41
  mov ecx,maxSyntaxFileSize
42
  call mem_Alloc
42
  stdcall mem.Alloc,ecx
43
  mov [options_file],eax
43
  mov [options_file],eax
Line 57... Line 57...
57
;---------------------------------------------------------------------
57
;---------------------------------------------------------------------
58
  stdcall dword[tl_data_init],dword tree1
58
  stdcall dword[tl_data_init],dword tree1
59
  copy_path fn_icon_tl_sys,sys_path,file_name,0
59
  copy_path fn_icon_tl_sys,sys_path,file_name,0
Line 60... Line 60...
60
 
60
 
61
  mov ecx,3*256*13
61
  mov ecx,3*256*13
62
  call mem_Alloc
62
  stdcall mem.Alloc,ecx
Line 63... Line 63...
63
  mov dword[tree1.data_img_sys],eax
63
  mov dword[tree1.data_img_sys],eax
64
 
64
 
65
  mov [run_file_70.Function], 0
65
  mov [run_file_70.Function], 0
66
  mov [run_file_70.Position], 54
66
  mov [run_file_70.Position], 54
67
  mov [run_file_70.Flags], 0
67
  mov [run_file_70.Flags], 0
68
  mov [run_file_70.Count], 3*256*13
68
  mov [run_file_70.Count], ecx
69
  mov [run_file_70.Buffer], eax
69
  mov [run_file_70.Buffer], eax
Line 70... Line 70...
70
  mov byte[run_file_70+20], 0
70
  mov byte[run_file_70+20], 0
Line 80... Line 80...
80
;---------------------------------------------------------------------
80
;---------------------------------------------------------------------
81
; ç¨â ¥¬ bmp ä ©« á ¨ª®­ª ¬¨ 㧫®¢
81
; ç¨â ¥¬ bmp ä ©« á ¨ª®­ª ¬¨ 㧫®¢
82
  copy_path fn_icon_tl_nod,sys_path,file_name,0
82
  copy_path fn_icon_tl_nod,sys_path,file_name,0
Line 83... Line 83...
83
 
83
 
84
  mov ecx,3*256*2
84
  mov ecx,3*256*2
85
  call mem_Alloc
85
  stdcall mem.Alloc,ecx
Line 86... Line 86...
86
  mov dword[tree1.data_img],eax
86
  mov dword[tree1.data_img],eax
87
 
87
 
88
;  mov [run_file_70.Function], 0
88
;  mov [run_file_70.Function], 0
89
;  mov [run_file_70.Position], 54
89
;  mov [run_file_70.Position], 54
90
;  mov [run_file_70.Flags], 0
90
;  mov [run_file_70.Flags], 0
91
  mov [run_file_70.Count], 3*256*2
91
  mov [run_file_70.Count], ecx
92
  mov [run_file_70.Buffer], eax
92
  mov [run_file_70.Buffer], eax
Line 93... Line 93...
93
;  mov byte[run_file_70+20], 0
93
;  mov byte[run_file_70+20], 0
Line 242... Line 242...
242
  cmp ah,1
242
  cmp ah,1
243
  jne still
243
  jne still
244
.exit:
244
.exit:
245
  ;push eax
245
  ;push eax
Line 246... Line 246...
246
 
246
 
247
  mov ecx,[options_file]
-
 
Line 248... Line 247...
248
  call mem_Free
247
  stdcall mem.Free,[options_file]
249
 
248
 
250
  stdcall [tl_data_clear], tree1
249
  stdcall [tl_data_clear], tree1
Line 299... Line 298...
299
	;jne @f
298
	;jne @f
300
	;       mov eax,tedit1
299
	;       mov eax,tedit1
301
	;@@:
300
	;@@:
302
	ret
301
	ret
Line 303... Line 302...
303
 
302
 
Line 304... Line 303...
304
hed db 'TextEditor syntax file converter 31.05.10',0 ;¯®¤¯¨áì ®ª­ 
303
hed db 'TextEditor syntax file converter 09.06.10',0 ;¯®¤¯¨áì ®ª­ 
305
 
304
 
306
txtErrOpen db '¥ ­ ©¤¥­ ä ©«, ¯à®¢¥àì⥠¯à ¢¨«ì­®áâì ¨¬¥­¨',0
305
txtErrOpen db '¥ ­ ©¤¥­ ä ©«, ¯à®¢¥àì⥠¯à ¢¨«ì­®áâì ¨¬¥­¨',0
Line 323... Line 322...
323
err_message_import0	 db 'Error on load import library box_lib.obj',0
322
err_message_import0	 db 'Error on load import library box_lib.obj',0
324
err_message_found_lib1	db 'Sorry I cannot found library msgbox.obj',0
323
err_message_found_lib1	db 'Sorry I cannot found library msgbox.obj',0
Line 325... Line 324...
325
 
324
 
326
;library structures
325
;library structures
327
l_libs_start:
326
l_libs_start:
328
  lib0 l_libs boxlib_name, sys_path, file_name, system_dir0, err_message_found_lib0, head_f_l0, myimport,err_message_import0, head_f_i0
327
  lib0 l_libs boxlib_name, sys_path, file_name, system_dir0, err_message_found_lib0, head_f_l0, boxlib_import,err_message_import0, head_f_i0
Line 329... Line -...
329
load_lib_end:
-
 
330
 
-
 
331
;-----------------------------------------------------------------------------
-
 
332
;äã­ªæ¨ï ¤«ï ¢ë¤¥«¥­¨ï ¯ ¬ïâ¨
-
 
333
;input:
-
 
334
; ecx = size data
-
 
335
;otput:
-
 
336
; eax = pointer to memory
-
 
337
align 4
-
 
338
mem_Alloc:
-
 
339
  push ebx
-
 
340
  mov eax,68
-
 
341
  mov ebx,12
-
 
342
  int 0x40
-
 
343
  pop ebx
-
 
344
  ret
-
 
345
;-----------------------------------------------------------------------------
-
 
346
;äã­ªæ¨ï ¤«ï ®á¢®¡®¦¤¥­¨ï ¯ ¬ïâ¨
-
 
347
;input:
-
 
348
; ecx = pointer to memory
-
 
349
align 4
-
 
350
mem_Free:
-
 
351
  push eax ebx
-
 
352
  cmp ecx,0
-
 
353
  jz @f
-
 
354
    mov eax,68
-
 
355
    mov ebx,13
-
 
356
    int 0x40
-
 
357
  @@:
-
 
Line 358... Line 328...
358
  pop ebx eax
328
load_lib_end:
359
  ret
329
 
360
 
330
 
361
i_end:
331
i_end: