2010-05-30 23:27:14 +02:00
|
|
|
|
use32
|
|
|
|
|
org 0x0
|
|
|
|
|
db 'MENUET01' ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20>ᯮ<EFBFBD><E1AFAE>塞<EFBFBD><EFA5AC><EFBFBD> 䠩<><E4A0A9> <20>ᥣ<EFBFBD><E1A5A3> 8 <20><><EFBFBD><EFBFBD>
|
|
|
|
|
dd 0x01
|
|
|
|
|
dd start
|
|
|
|
|
dd i_end ; ࠧ<><E0A0A7><EFBFBD> <20>ਫ<EFBFBD><E0A8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
dd mem
|
|
|
|
|
dd stacktop
|
2011-08-20 21:11:46 +02:00
|
|
|
|
dd file_name
|
2010-05-30 23:27:14 +02:00
|
|
|
|
dd sys_path
|
|
|
|
|
|
|
|
|
|
MAX_COLOR_WORD_LEN equ 40
|
2012-06-23 12:20:38 +02:00
|
|
|
|
BUF_SIZE equ 4096 ;buffer for copy|paste
|
2010-05-30 23:27:14 +02:00
|
|
|
|
maxSyntaxFileSize equ 310000
|
2011-08-20 21:11:46 +02:00
|
|
|
|
CAPT_PATH_WIDTH equ 50 ;<3B><>ਭ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>। ⥪<>⮢<EFBFBD><E2AEA2> <20><><EFBFBD><EFBFBD><EFBFBD>
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
include '../../macros.inc'
|
|
|
|
|
include '../../proc32.inc'
|
|
|
|
|
include '../../develop/libraries/box_lib/load_lib.mac'
|
|
|
|
|
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
|
2014-07-01 15:46:54 +02:00
|
|
|
|
include '../../dll.inc'
|
2010-05-30 23:27:14 +02:00
|
|
|
|
include 'te_data.inc'
|
|
|
|
|
include 'te_work.inc' ;text work functions
|
|
|
|
|
|
2014-07-01 15:46:54 +02:00
|
|
|
|
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
|
|
|
|
|
|
|
|
|
|
;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>㧪<EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20>ᯮ<EFBFBD>짮<EFBFBD><ECA7AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> libimg.obj
|
|
|
|
|
;<3B><><EFBFBD> <20>ᯮ<EFBFBD>짮<EFBFBD><ECA7AE><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>㦭<EFBFBD> <20><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD>:
|
|
|
|
|
; - run_file_70 FileInfoBlock
|
|
|
|
|
; - image_data dd 0
|
|
|
|
|
macro load_image_file path,buf,size
|
|
|
|
|
{
|
|
|
|
|
;path - <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><>ப<EFBFBD><E0AEAA><EFBFBD><EFBFBD> <20><>ࠬ<EFBFBD><E0A0AC>
|
|
|
|
|
if path eqtype '' ;<3B><EFBFBD><E0AEA2>塞 <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>ப<EFBFBD><E0AEAA> <20><>ࠬ<EFBFBD><E0A0AC><EFBFBD> path
|
|
|
|
|
jmp @f
|
|
|
|
|
local .path_str
|
|
|
|
|
.path_str db path ;<3B><>ନ<EFBFBD>㥬 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
db 0
|
|
|
|
|
@@:
|
|
|
|
|
;32 - <20>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20><>⥬
|
2015-11-11 00:11:17 +01:00
|
|
|
|
copy_path .path_str,[32],file_name,0
|
2014-07-01 15:46:54 +02:00
|
|
|
|
else
|
2015-11-11 00:11:17 +01:00
|
|
|
|
copy_path path,[32],file_name,0 ;<3B><>ନ<EFBFBD>㥬 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> 䠩<><E4A0A9> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>, <20><><EFBFBD>ࠧ㬥<E0A0A7><E3ACA5><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20>ணࠬ<E0AEA3><E0A0AC><EFBFBD>
|
2014-07-01 15:46:54 +02:00
|
|
|
|
end if
|
|
|
|
|
|
|
|
|
|
stdcall mem.Alloc, dword size ;<3B>뤥<EFBFBD>塞 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
mov [buf],eax
|
|
|
|
|
|
|
|
|
|
mov [run_file_70.Function], 0
|
|
|
|
|
mov [run_file_70.Position], 0
|
|
|
|
|
mov [run_file_70.Flags], 0
|
|
|
|
|
mov [run_file_70.Count], dword size
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mov [run_file_70.Buffer], eax
|
2014-07-01 15:46:54 +02:00
|
|
|
|
mov byte[run_file_70+20], 0
|
|
|
|
|
mov [run_file_70.FileName], file_name
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mcall 70,run_file_70 ;<3B><><EFBFBD><EFBFBD>㦠<EFBFBD><E3A6A0> 䠩<> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
2014-07-01 15:46:54 +02:00
|
|
|
|
cmp ebx,0xffffffff
|
|
|
|
|
je @f
|
|
|
|
|
;<3B><>।<EFBFBD><E0A5A4>塞 <20><><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20><>ॢ<EFBFBD><E0A5A2><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> image_data
|
|
|
|
|
stdcall dword[img_decode], dword[buf],ebx,0
|
|
|
|
|
mov dword[image_data],eax
|
|
|
|
|
;<3B>८<EFBFBD>ࠧ㥬 <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20><>ଠ<EFBFBD><E0ACA0> rgb
|
|
|
|
|
stdcall dword[img_to_rgb2], dword[image_data],dword[buf]
|
|
|
|
|
;㤠<>塞 <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> image_data
|
|
|
|
|
stdcall dword[img_destroy], dword[image_data]
|
|
|
|
|
@@:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
image_data dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD> <20>㦥<EFBFBD> <20>८<EFBFBD>ࠧ<EFBFBD><E0A0A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
icon_tl_sys dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
start:
|
2012-06-23 12:20:38 +02:00
|
|
|
|
mcall 48,3,sc,sizeof.system_colors
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
2012-06-23 12:20:38 +02:00
|
|
|
|
mcall 68,11
|
|
|
|
|
or eax,eax
|
|
|
|
|
jz button.exit
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
2012-06-23 12:20:38 +02:00
|
|
|
|
mcall 66,1,1 ;scan code
|
|
|
|
|
mcall 40,0x27
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
;-------------------------------------------------
|
2012-06-23 12:20:38 +02:00
|
|
|
|
mov ecx,maxSyntaxFileSize
|
|
|
|
|
stdcall mem.Alloc,ecx
|
|
|
|
|
mov [options_file],eax
|
|
|
|
|
mov [options_file_end],eax
|
|
|
|
|
add [options_file_end],ecx
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
load_libraries l_libs_start,load_lib_end
|
|
|
|
|
|
2015-11-11 00:11:17 +01:00
|
|
|
|
;<3B><EFBFBD>ઠ <20><> <>쪮 㤠筮 <20><><EFBFBD>㧨<EFBFBD><E3A7A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD>
|
|
|
|
|
cmp dword [lib0+ll_struc_size-4],0
|
|
|
|
|
jz @f
|
|
|
|
|
mcall -1 ;exit not correct
|
|
|
|
|
@@:
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
;---------------------------------------------------------------------
|
2014-07-01 15:46:54 +02:00
|
|
|
|
stdcall dword[tl_data_init],dword tree1
|
|
|
|
|
|
|
|
|
|
; <20><>⠥<EFBFBD> 䠩<> <20> <20><><EFBFBD><EFBFBD><EFBFBD>ࠬ<EFBFBD> <20> <20><><EFBFBD><EFBFBD>ﬨ
|
|
|
|
|
load_image_file 'tl_sys_16.png', icon_tl_sys,54+3*256*13
|
|
|
|
|
mov eax,dword[icon_tl_sys]
|
|
|
|
|
mov dword[tree1.data_img_sys],eax
|
2010-05-30 23:27:14 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
; <20><>⠥<EFBFBD> bmp 䠩<> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<><E3A7AB>
|
2014-07-01 15:46:54 +02:00
|
|
|
|
load_image_file 'tl_nod_16.png', icon_tl_sys,54+3*256*2
|
|
|
|
|
mov eax,dword[icon_tl_sys]
|
|
|
|
|
mov dword[tree1.data_img],eax
|
2010-05-30 23:27:14 +02:00
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
|
copy_path fn_syntax_dir,sys_path,file_name,0 ;<3B><>६ <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20> 䠩<><E4A0A9><EFBFBD><EFBFBD> ᨭ⠪<E1A8AD><E2A0AA><EFBFBD><EFBFBD>
|
|
|
|
|
mov eax,70
|
|
|
|
|
mov ebx,tree_file_struct
|
|
|
|
|
int 0x40
|
|
|
|
|
|
|
|
|
|
cmp ebx,-1
|
|
|
|
|
je .end_dir_init
|
|
|
|
|
|
|
|
|
|
mov eax,dir_mem
|
|
|
|
|
add eax,32+4+1+3+4*6+8
|
|
|
|
|
mov ecx,ebx
|
|
|
|
|
@@:
|
|
|
|
|
cmp byte[eax],'.' ;䨫<><E4A8AB><EFBFBD>㥬 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.' <20> '..'
|
|
|
|
|
je .filter
|
2015-11-11 00:11:17 +01:00
|
|
|
|
stdcall dword[tl_node_add],tree1,0x10000,eax ;1*2^16 - <20><><EFBFBD> 1 <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-05-30 23:27:14 +02:00
|
|
|
|
stdcall dword[tl_cur_next],tree1
|
|
|
|
|
.filter:
|
|
|
|
|
add eax,304
|
|
|
|
|
loop @b
|
2011-08-22 17:58:27 +02:00
|
|
|
|
stdcall dword[tl_cur_beg],tree1 ;<3B>⠢<EFBFBD><E2A0A2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>砫<EFBFBD> ᯨ᪠
|
2010-05-30 23:27:14 +02:00
|
|
|
|
.end_dir_init:
|
|
|
|
|
|
|
|
|
|
;--- load color option file ---
|
|
|
|
|
stdcall [ted_init], tedit0
|
2011-08-20 21:11:46 +02:00
|
|
|
|
mov byte[file_name],0
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
red_win:
|
2011-08-20 21:11:46 +02:00
|
|
|
|
call draw_window
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
still:
|
|
|
|
|
mcall 10
|
|
|
|
|
|
|
|
|
|
cmp al,1 ;<3B><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
jz red_win
|
|
|
|
|
cmp al,2
|
|
|
|
|
jz key
|
|
|
|
|
cmp al,3
|
|
|
|
|
jz button
|
|
|
|
|
cmp al,6
|
|
|
|
|
jz mouse
|
|
|
|
|
|
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
|
|
|
2011-08-20 21:11:46 +02:00
|
|
|
|
align 4
|
|
|
|
|
draw_window:
|
|
|
|
|
pushad
|
|
|
|
|
mcall 12,1
|
|
|
|
|
|
|
|
|
|
mov edx,[sc.work]
|
|
|
|
|
or edx,0x33000000
|
|
|
|
|
mov edi,hed
|
|
|
|
|
mcall 0,<10,555>,<10,333>
|
|
|
|
|
|
|
|
|
|
mcall 9,procinfo,-1
|
|
|
|
|
|
|
|
|
|
mov eax,8 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov ebx,5*65536+90
|
|
|
|
|
mov ecx,195*65536+20
|
|
|
|
|
mov edx,200
|
|
|
|
|
mov esi,[sc.work_button];0xd0
|
|
|
|
|
mcall
|
|
|
|
|
|
|
|
|
|
;mov eax,8
|
|
|
|
|
mov ebx,100*65536+85
|
|
|
|
|
mov ecx,195*65536+20
|
|
|
|
|
mov edx,201
|
|
|
|
|
mov esi,0xd00000
|
|
|
|
|
mcall
|
|
|
|
|
|
|
|
|
|
mov eax,4 ;<3B><>ᮢ<EFBFBD><E1AEA2><EFBFBD><EFBFBD> ⥪<><E2A5AA><EFBFBD>
|
|
|
|
|
mov ebx,10*65536+200
|
|
|
|
|
mov ecx,[sc.work_button_text]
|
|
|
|
|
or ecx,0x80000000
|
|
|
|
|
mov edx,txt122
|
|
|
|
|
mcall
|
|
|
|
|
|
|
|
|
|
mov ebx,105*65536+200
|
|
|
|
|
mov ecx,0xffff00
|
|
|
|
|
or ecx,0x80000000
|
|
|
|
|
mov edx,txt148
|
|
|
|
|
mcall
|
|
|
|
|
|
|
|
|
|
mov ebx,195*65536+10
|
|
|
|
|
mov ecx,[sc.work_text]
|
|
|
|
|
or ecx,0x80000000
|
|
|
|
|
mov edx,txt_inp_file
|
|
|
|
|
int 0x40
|
|
|
|
|
|
|
|
|
|
add ebx,20
|
|
|
|
|
mov edx,txt_out_file
|
|
|
|
|
int 0x40
|
|
|
|
|
|
2011-08-26 16:09:59 +02:00
|
|
|
|
push dword PathShow_data_1
|
|
|
|
|
call [PathShow_draw]
|
|
|
|
|
|
2011-08-20 21:11:46 +02:00
|
|
|
|
stdcall [edit_box_draw],dword edit1
|
|
|
|
|
stdcall [tl_draw],dword tree1
|
|
|
|
|
|
|
|
|
|
;scroll 1
|
|
|
|
|
mov [ws_dir_lbox.all_redraw],1
|
|
|
|
|
stdcall [scrollbar_ver_draw],dword ws_dir_lbox
|
|
|
|
|
stdcall [ted_draw], tedit0
|
|
|
|
|
|
|
|
|
|
mcall 12,2
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
2010-05-30 23:27:14 +02:00
|
|
|
|
align 4
|
|
|
|
|
mouse:
|
|
|
|
|
stdcall [tl_mouse],tree1
|
|
|
|
|
stdcall [edit_box_mouse],edit1
|
|
|
|
|
stdcall [ted_mouse], tedit0
|
|
|
|
|
jmp still
|
|
|
|
|
|
2012-06-23 12:20:38 +02:00
|
|
|
|
;output:
|
|
|
|
|
; ah = symbol
|
|
|
|
|
align 4
|
|
|
|
|
proc KeyConvertToASCII, table:dword
|
|
|
|
|
push ebx
|
|
|
|
|
mov ebx,dword[table] ;convert scan to ascii
|
|
|
|
|
ror ax,8
|
|
|
|
|
xor ah,ah
|
|
|
|
|
add bx,ax
|
|
|
|
|
mov ah,byte[ebx]
|
|
|
|
|
pop ebx
|
|
|
|
|
ret
|
|
|
|
|
endp
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
key:
|
2012-06-23 12:20:38 +02:00
|
|
|
|
mcall 66,3 ;66.3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD> <20><>ࠢ<EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
xor esi,esi
|
|
|
|
|
mov ecx,1
|
|
|
|
|
test al,0x03 ;[Shift]
|
|
|
|
|
jz @f
|
|
|
|
|
mov cl,2
|
|
|
|
|
or esi,KM_SHIFT
|
|
|
|
|
@@:
|
|
|
|
|
test al,0x0c ;[Ctrl]
|
|
|
|
|
jz @f
|
|
|
|
|
or esi,KM_CTRL
|
|
|
|
|
@@:
|
|
|
|
|
test al,0x30 ;[Alt]
|
|
|
|
|
jz @f
|
|
|
|
|
mov cl,3
|
|
|
|
|
or esi,KM_ALT
|
|
|
|
|
@@:
|
|
|
|
|
test al,0x80 ;[NumLock]
|
|
|
|
|
jz @f
|
|
|
|
|
or esi,KM_NUMLOCK
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
mcall 26,2,,conv_tabl ;26.2 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>᪫<EFBFBD><E1AAAB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-05-30 23:27:14 +02:00
|
|
|
|
mcall 2
|
|
|
|
|
stdcall [tl_key],tree1
|
2012-06-23 12:20:38 +02:00
|
|
|
|
|
|
|
|
|
test word [edit1.flags],10b;ed_focus ; <20> <20><> <20> 䮪<><E4AEAA><EFBFBD>, <20><>室<EFBFBD><E5AEA4>
|
|
|
|
|
je @f
|
|
|
|
|
cmp ah,0x80 ;if key up
|
|
|
|
|
ja still
|
|
|
|
|
cmp ah,42 ;[Shift] (left)
|
|
|
|
|
je still
|
|
|
|
|
cmp ah,54 ;[Shift] (right)
|
|
|
|
|
je still
|
|
|
|
|
cmp ah,56 ;[Alt]
|
|
|
|
|
je still
|
|
|
|
|
cmp ah,29 ;[Ctrl]
|
|
|
|
|
je still
|
|
|
|
|
cmp ah,69 ;[Pause Break]
|
|
|
|
|
je still
|
|
|
|
|
|
|
|
|
|
stdcall KeyConvertToASCII, dword conv_tabl
|
|
|
|
|
stdcall [edit_box_key],edit1
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall [ted_key], tedit0, conv_tabl,esi
|
2010-05-30 23:27:14 +02:00
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
button:
|
|
|
|
|
; cmp [menu_active],1 ;<3B> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><> ᭠砫<E1ADA0> ॠ<><E0A5A0><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
; jne @f ;mouse.menu_bar_1
|
|
|
|
|
; mov [menu_active],0
|
|
|
|
|
; jmp still
|
|
|
|
|
; @@:
|
|
|
|
|
|
|
|
|
|
mcall 17 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>⮩ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
cmp ah,200
|
|
|
|
|
jne @f
|
|
|
|
|
call but_OpenSyntax
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,201
|
|
|
|
|
jne @f
|
|
|
|
|
call but_SaveSyntax
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
cmp ah,1
|
|
|
|
|
jne still
|
|
|
|
|
.exit:
|
|
|
|
|
;push eax
|
|
|
|
|
|
2010-06-09 22:06:03 +02:00
|
|
|
|
stdcall mem.Free,[options_file]
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
stdcall [tl_data_clear], tree1
|
|
|
|
|
stdcall [ted_delete], tedit0
|
|
|
|
|
mcall -1 ;<3B><>室 <20><> <20>ணࠬ<E0AEA3><E0A0AC>
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
but_OpenSyntax:
|
2015-11-11 00:11:17 +01:00
|
|
|
|
push eax
|
|
|
|
|
stdcall [tl_node_get_data],tree1
|
|
|
|
|
mov [fn_col_option],eax
|
|
|
|
|
call InitColText
|
|
|
|
|
pop eax
|
|
|
|
|
ret
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
but_SaveSyntax:
|
2014-07-01 15:46:54 +02:00
|
|
|
|
stdcall [ted_save_file], tedit0,run_file_70,[edit1.text]
|
2010-05-30 23:27:14 +02:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
but_ctrl_o:
|
|
|
|
|
push eax
|
|
|
|
|
call get_wnd_in_focus
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je @f
|
|
|
|
|
stdcall [ted_open_file], eax,str_file_70,[edit1.text]
|
|
|
|
|
@@:
|
|
|
|
|
pop eax
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;ᮧ<><E1AEA7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
align 4
|
|
|
|
|
but_ctrl_n:
|
|
|
|
|
push eax
|
|
|
|
|
call get_wnd_in_focus
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je @f
|
|
|
|
|
stdcall [ted_clear], eax,1
|
|
|
|
|
stdcall [ted_draw], eax
|
|
|
|
|
@@:
|
|
|
|
|
pop eax
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;<3B><>।<EFBFBD><E0A5A4>塞 <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> ।<><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 䮪<><E4AEAA><EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
get_wnd_in_focus:
|
|
|
|
|
xor eax,eax
|
|
|
|
|
cmp dword[el_focus],tedit0
|
|
|
|
|
jne @f
|
|
|
|
|
mov eax,tedit0
|
|
|
|
|
@@:
|
|
|
|
|
;cmp dword[el_focus],tedit1
|
|
|
|
|
;jne @f
|
|
|
|
|
; mov eax,tedit1
|
|
|
|
|
;@@:
|
|
|
|
|
ret
|
|
|
|
|
|
2015-11-11 00:11:17 +01:00
|
|
|
|
hed db 'TextEditor syntax file converter 10.11.15',0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
2012-06-23 12:20:38 +02:00
|
|
|
|
conv_tabl rb 128 ; ⠡<><E2A0A1><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD> scan-<2D><><EFBFBD><EFBFBD> <20> ascii-<2D><><EFBFBD>
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
txt122 db '<27><><EFBFBD><EFBFBD>. 䠩<>',0
|
|
|
|
|
txt148 db '<27><><EFBFBD><EFBFBD>. 䠩<>',0
|
2011-08-20 21:11:46 +02:00
|
|
|
|
txt_inp_file db '<27><><EFBFBD>. 䠩<>:',0
|
2010-05-30 23:27:14 +02:00
|
|
|
|
txt_out_file db '<27><><EFBFBD>. 䠩<>:',0
|
|
|
|
|
|
2014-07-01 15:46:54 +02:00
|
|
|
|
txt_no_kpack db '<27><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0><EFBFBD><EFBFBD> 䠩<> ᦠ<> Kpack-<2D><>.',13,10,'<27><><EFBFBD> ࠡ<><E0A0A1><EFBFBD> <20> 䠩<><E4A0A9><EFBFBD> <20><>ᯠ<EFBFBD><E1AFA0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20>ᯮ<EFBFBD><E1AFAE><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20>ணࠬ<E0AEA3><E0A0AC> Kpack.',13,10,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> ᦠ<>묨 䠩<><E4A0A9><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ন<EFBFBD><E0A6A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.',0
|
|
|
|
|
|
|
|
|
|
head_f_i:
|
|
|
|
|
head_f_l db 'System error',0
|
|
|
|
|
err_message_found_lib_0 db 'Sorry I cannot found library ',39,'box_lib.obj',39,0
|
|
|
|
|
err_message_import_0 db 'Error on load import library ',39,'box_lib.obj',39,0
|
|
|
|
|
err_message_found_lib_1 db 'Sorry I cannot found library ',39,'libimg.obj',39,0
|
|
|
|
|
err_message_import_1 db 'Error on load import library ',39,'libimg.obj',39,0
|
2010-05-30 23:27:14 +02:00
|
|
|
|
|
|
|
|
|
;library structures
|
|
|
|
|
l_libs_start:
|
2014-07-01 15:46:54 +02:00
|
|
|
|
lib0 l_libs lib_name_0, sys_path, file_name, system_dir_0, err_message_found_lib_0, head_f_l, import_box_lib,err_message_import_0, head_f_i
|
|
|
|
|
lib1 l_libs lib_name_1, sys_path, file_name, system_dir_1, err_message_found_lib_1, head_f_l, import_libimg,err_message_import_1, head_f_i
|
2010-05-30 23:27:14 +02:00
|
|
|
|
load_lib_end:
|
|
|
|
|
|
|
|
|
|
|
2015-11-11 00:11:17 +01:00
|
|
|
|
align 16
|
2010-05-30 23:27:14 +02:00
|
|
|
|
i_end:
|
|
|
|
|
procinfo process_information
|
2015-11-11 00:11:17 +01:00
|
|
|
|
rb 1024
|
2010-05-30 23:27:14 +02:00
|
|
|
|
thread:
|
|
|
|
|
rb 1024
|
|
|
|
|
stacktop:
|
|
|
|
|
sys_path:
|
|
|
|
|
rb 4096
|
|
|
|
|
file_name:
|
|
|
|
|
rb 4096
|
|
|
|
|
file_name_rez:
|
|
|
|
|
rb 4096
|
|
|
|
|
mem:
|