2010-11-11 22:47:18 +01:00
|
|
|
|
;
|
2010-12-22 18:03:22 +01:00
|
|
|
|
; <EFBFBD> <EFBFBD>⮬ 䠩<EFBFBD><EFBFBD> ᮡ࠭<EFBFBD> <EFBFBD>㭪樨 ᮧ<EFBFBD><EFBFBD><EFBFBD>騥 <EFBFBD>ணࠬ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
;
|
2010-12-22 18:03:22 +01:00
|
|
|
|
u_object object ;<EFBFBD>६<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᬥ饭<EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
macro insert_coma
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_coma,1,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_nl
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_nl,1,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_com
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_com,1,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_sp
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_sp,1,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⥪<EFBFBD>⮢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD> <EFBFBD> ⥪<EFBFBD>⮢<EFBFBD><EFBFBD> ।<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc insert_text, txt:dword
|
|
|
|
|
push eax
|
|
|
|
|
stdcall str_len,dword[txt]
|
|
|
|
|
cmp eax,1
|
|
|
|
|
jl @f
|
|
|
|
|
stdcall [ted_text_add], tedit0,dword[txt],eax,ted_opt_ed_move_cursor
|
|
|
|
|
@@:
|
|
|
|
|
pop eax
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㪠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⥪<EFBFBD>⮢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⢮ <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> <EFBFBD> ⥪<EFBFBD>⮢<EFBFBD><EFBFBD> ।<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc insert_text_prop, p_obj:dword,index:dword
|
|
|
|
|
push eax edx
|
|
|
|
|
mov eax,[p_obj]
|
|
|
|
|
mov edx,[index]
|
|
|
|
|
stdcall get_obj_text_col,eax,edx
|
|
|
|
|
stdcall str_len,edx
|
|
|
|
|
stdcall [ted_text_add], tedit0,edx,eax,ted_opt_ed_move_cursor
|
|
|
|
|
pop edx eax
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㪠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⮢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⢮ <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> <EFBFBD> ⥪<EFBFBD>⮢<EFBFBD><EFBFBD> ।<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
proc insert_bit_prop, p_obj:dword,index:dword
|
|
|
|
|
push ebx ecx edi
|
|
|
|
|
mov ebx,[p_obj]
|
|
|
|
|
mov ecx,[index]
|
|
|
|
|
test_bool_prop ebx,ecx
|
|
|
|
|
jnc @f ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>짮<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ࠫ <EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⢮
|
|
|
|
|
mov ebx,dword[ebx]
|
|
|
|
|
call find_obj_in_opt
|
|
|
|
|
mov ecx,dword[edi+obj_opt.bit_val-obj_opt] ;ecx - ᬥ饭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⠭<EFBFBD>)
|
|
|
|
|
cmp byte[ecx],0
|
|
|
|
|
je @f ;<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⮢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
add ecx,obj_opt ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 <EFBFBD><EFBFBD>砫<EFBFBD> 䠩<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ﬨ
|
|
|
|
|
stdcall get_string_by_ind, ecx,[index]
|
|
|
|
|
cmp byte[edi],0
|
|
|
|
|
je @f ;<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⮢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⢮ <EFBFBD><EFBFBD><EFBFBD>⮥
|
|
|
|
|
stdcall insert_text, txt_plus
|
|
|
|
|
stdcall insert_text, edi
|
|
|
|
|
@@:
|
|
|
|
|
pop edi ecx ebx
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;<EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2 <EFBFBD><EFBFBD>ࠬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 16 <EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
2010-12-18 11:13:51 +01:00
|
|
|
|
; (_p1_ shl 16 + _p2_)
|
|
|
|
|
align 4
|
|
|
|
|
proc insert_2_prop_16_bit, obj:dword, p_hi:dword, p_lo:dword
|
|
|
|
|
stdcall insert_text, txt_skob_o
|
|
|
|
|
stdcall insert_text_prop, [obj],[p_hi]
|
|
|
|
|
stdcall insert_text, txt_shl_16
|
|
|
|
|
stdcall insert_text, txt_skob_c
|
|
|
|
|
stdcall insert_text, txt_plus
|
|
|
|
|
stdcall insert_text_prop, [obj],[p_lo]
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD>⠢<EFBFBD>塞 <EFBFBD><EFBFBD>ப<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
2010-12-18 11:13:51 +01:00
|
|
|
|
; txt_(n) db (s)
|
|
|
|
|
align 4
|
|
|
|
|
proc insert_text_label_data, obj:dword, col:dword
|
|
|
|
|
push eax edx
|
|
|
|
|
mov eax,[obj]
|
|
|
|
|
stdcall insert_text, txt_txt
|
|
|
|
|
mov edx,fp_icon
|
|
|
|
|
stdcall get_obj_id_str, eax,edx ;edx = 'n'
|
|
|
|
|
stdcall str_cat, edx,txt_db ;edx = 'n db '
|
|
|
|
|
stdcall insert_text, edx
|
|
|
|
|
stdcall insert_text_prop, eax,[col]
|
|
|
|
|
insert_nl
|
|
|
|
|
pop edx eax
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-11-11 22:47:18 +01:00
|
|
|
|
macro insert_tab
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_tab,1,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_br
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_br,3,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_a_met
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_a_met,3,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_0
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_0,1,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_plus
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_plus,1,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_xor
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_xor,4,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_cmp
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_cmp,4,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_reg reg_name
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,reg_name,3,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_reg8 reg_name
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,reg_name,2,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
macro insert_key_beg
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_key_1,txt_key_2-txt_key_1,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_key_end
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_key_2,txt_key_3-txt_key_2,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro insert_d_poi
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_d_poi,1,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
macro insert_ret
|
|
|
|
|
{
|
|
|
|
|
stdcall [ted_text_add], tedit0,txt_ret,4,ted_opt_ed_move_cursor
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
align 4
|
2010-11-29 20:11:22 +01:00
|
|
|
|
but_update:
|
|
|
|
|
call draw_constructor
|
2010-12-22 18:03:22 +01:00
|
|
|
|
cmp byte[show_mode],0 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-29 20:11:22 +01:00
|
|
|
|
jne @f
|
|
|
|
|
stdcall [buf2d_draw], buf_fon
|
|
|
|
|
@@:
|
2010-11-11 22:47:18 +01:00
|
|
|
|
call code_gen
|
2010-12-22 18:03:22 +01:00
|
|
|
|
cmp byte[show_mode],1 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⥪<EFBFBD>⮢<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
|
|
|
|
stdcall [ted_draw], tedit0
|
|
|
|
|
@@:
|
|
|
|
|
ret
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> ᮧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ᥣ<EFBFBD> 䠩<EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
code_gen:
|
|
|
|
|
stdcall [ted_clear], tedit0,1
|
|
|
|
|
pushad
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
xor bl,bl
|
|
|
|
|
call code_gen_obj
|
|
|
|
|
stdcall [ted_text_add], tedit0,\
|
2010-12-22 18:03:22 +01:00
|
|
|
|
txt_nl,1,ted_opt_ed_move_cursor+ted_opt_ed_change_time ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 ᨬ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>樥<EFBFBD> ted_opt_ed_change_time <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>
|
|
|
|
|
stdcall [ted_init_scroll_bars], tedit0, 4 ;<EFBFBD><EFBFBD><EFBFBD>塞 ࠧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;input:
|
2010-12-22 18:03:22 +01:00
|
|
|
|
; bl - <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
|
|
|
|
; esi - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> 㧥<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
code_gen_obj:
|
2010-12-31 18:11:57 +01:00
|
|
|
|
push eax ebx edx
|
2010-11-11 22:47:18 +01:00
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
cmp byte[esi+2],bl ;lev
|
|
|
|
|
jl .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop eax ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
cmp eax,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[eax],C_STR
|
2010-12-18 11:13:51 +01:00
|
|
|
|
jne .no_struct
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall get_obj_text_col, eax,1 ;edx - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> 1-<EFBFBD> <EFBFBD><EFBFBD>⢮ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_text,txt_struc
|
|
|
|
|
cmp byte[edx],0
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall insert_text,txt_t
|
|
|
|
|
@@:
|
|
|
|
|
insert_sp
|
2010-12-13 16:21:52 +01:00
|
|
|
|
stdcall insert_text_prop, eax,0
|
2010-12-18 11:13:51 +01:00
|
|
|
|
|
|
|
|
|
cmp byte[edx],0
|
|
|
|
|
je @f
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮬ
|
2010-12-18 11:13:51 +01:00
|
|
|
|
insert_sp
|
|
|
|
|
stdcall insert_text_prop, eax,1
|
|
|
|
|
insert_nl
|
|
|
|
|
stdcall insert_text, txt_skob_fo
|
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
insert_nl
|
2010-12-31 18:11:57 +01:00
|
|
|
|
stdcall get_code_children_objects, esi
|
|
|
|
|
call move_next_no_child_objects ;<EFBFBD>ய<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮢
|
2010-12-18 11:13:51 +01:00
|
|
|
|
cmp byte[edx],0
|
|
|
|
|
je @f
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮬ
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_text, txt_skob_fc
|
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
stdcall insert_text,txt_ends
|
2010-12-18 11:13:51 +01:00
|
|
|
|
.no_struct:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[eax],C_TXT
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall get_code_text,eax ;<EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[eax],C_INC
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall get_code_incl,eax ;<EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[eax],C_VAR
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall get_code_variable,eax,ebx ;<EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[eax],C_WND
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall get_code_window,eax ;<EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
2010-12-31 18:11:57 +01:00
|
|
|
|
stdcall get_code_children_objects, esi ;<EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮢
|
|
|
|
|
call move_next_no_child_objects ;<EFBFBD>ய<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮢
|
|
|
|
|
stdcall insert_text, txt_draw_we ;<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>騩 <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[eax],C_ACO
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
2010-12-31 18:11:57 +01:00
|
|
|
|
stdcall get_code_auto,esi ;<EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
|
|
|
|
call move_next_no_child_objects ;<EFBFBD>ய<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮢
|
2010-11-11 22:47:18 +01:00
|
|
|
|
@@:
|
2010-12-22 18:03:22 +01:00
|
|
|
|
cmp dword[eax],C_KEY ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall get_code_key,eax ;<EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
2010-12-31 18:11:57 +01:00
|
|
|
|
pop edx ebx eax
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> <EFBFBD><EFBFBD>ꥪ⮢
|
|
|
|
|
align 4
|
|
|
|
|
proc get_code_children_objects, p_node:dword
|
|
|
|
|
push ebx esi
|
|
|
|
|
mov esi,[p_node]
|
|
|
|
|
mov bl,byte[esi+2] ;<EFBFBD><EFBFBD><EFBFBD>࠭塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⥪<EFBFBD>饣<EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
|
|
|
|
cmp esi,0 ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>⨣<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᯨ᪠ <EFBFBD><EFBFBD>ꥪ⮢
|
|
|
|
|
je @f
|
|
|
|
|
cmp byte[esi+2],bl ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>饣<EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> ࠢ<EFBFBD><EFBFBD> ⥪<EFBFBD>饬<EFBFBD>
|
|
|
|
|
jle @f ;<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> 㧫<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov bl,byte[esi+2]
|
|
|
|
|
call code_gen_obj ;४<EFBFBD><EFBFBD>ᨢ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD>맮<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> <EFBFBD><EFBFBD>ꥪ⮢
|
|
|
|
|
@@:
|
|
|
|
|
pop esi ebx
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;<EFBFBD>ய<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> <EFBFBD><EFBFBD>ꥪ⮢
|
|
|
|
|
;input:
|
|
|
|
|
; esi - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> 㧥<EFBFBD>
|
|
|
|
|
;outpet:
|
|
|
|
|
; esi - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD>騩 <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> (<EFBFBD>⭮<EFBFBD><EFBFBD>⥫쭮 <EFBFBD>室<EFBFBD>饣<EFBFBD>) <EFBFBD><EFBFBD> 㧥<EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
move_next_no_child_objects:
|
|
|
|
|
push eax ebx
|
|
|
|
|
mov bl,byte[esi+2] ;<EFBFBD><EFBFBD><EFBFBD>࠭塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⥪<EFBFBD>饣<EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
|
|
|
|
@@:
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
|
|
|
|
pop eax ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
|
|
|
|
cmp eax,0 ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>⨣<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᯨ᪠ <EFBFBD><EFBFBD>ꥪ⮢
|
|
|
|
|
je @f
|
|
|
|
|
cmp byte[eax+2],bl ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>饣<EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> ࠢ<EFBFBD><EFBFBD> ⥪<EFBFBD>饬<EFBFBD>
|
|
|
|
|
jle @f ;<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> 㧫<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov esi,eax ;<EFBFBD> <EFBFBD><EFBFBD>騩 㧥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⠢<EFBFBD>塞 㪠<EFBFBD><EFBFBD>⥫<EFBFBD>
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
pop ebx eax
|
2010-11-11 22:47:18 +01:00
|
|
|
|
ret
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD>ணࠬ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (⥪<EFBFBD>⮬)
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_code_text, p_obj:dword
|
2010-12-13 16:21:52 +01:00
|
|
|
|
;pushad
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
2010-12-13 16:21:52 +01:00
|
|
|
|
stdcall insert_text_prop, dword[p_obj],0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
2010-12-13 16:21:52 +01:00
|
|
|
|
;popad
|
2010-11-11 22:47:18 +01:00
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> ᮧ<EFBFBD><EFBFBD><EFBFBD>饣<EFBFBD> <EFBFBD><EFBFBD>⮬<EFBFBD><EFBFBD><EFBFBD>祪ᨥ <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
2010-12-31 18:11:57 +01:00
|
|
|
|
proc get_code_auto, p_node:dword
|
2010-11-11 22:47:18 +01:00
|
|
|
|
pushad
|
|
|
|
|
insert_nl
|
2010-12-31 18:11:57 +01:00
|
|
|
|
mov esi,dword[p_node]
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
|
|
|
|
|
2010-12-18 11:13:51 +01:00
|
|
|
|
test_bool_prop ebx,BIT_MOD_ACI
|
|
|
|
|
jae @f
|
|
|
|
|
mov edx,C_CHB
|
|
|
|
|
stdcall find_obj_in_file,edx ;eax - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> check_box
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je @f
|
|
|
|
|
stdcall insert_text, txt_std_init_cb
|
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
test_bool_prop ebx,BIT_MOD_ACM
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jae @f
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD>⮬<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>᪨<EFBFBD> ᮡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
call get_code_auto_m
|
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
test_bool_prop ebx,BIT_MOD_ABU
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jae @f
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;ᮧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪樨 button
|
2010-12-31 18:11:57 +01:00
|
|
|
|
stdcall insert_text, txt_but_beg
|
2010-12-22 18:03:22 +01:00
|
|
|
|
call get_code_auto_but ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>맮<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-12-31 18:11:57 +01:00
|
|
|
|
stdcall insert_text, txt_but_mid
|
|
|
|
|
stdcall get_code_children_objects, esi
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪樨 button (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> id=-1, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>襭<EFBFBD><EFBFBD> <EFBFBD>ணࠬ<EFBFBD><EFBFBD>)
|
|
|
|
|
stdcall insert_text, txt_but_end
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
call get_code_a_but_fun ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪権, <EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨨ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
test_bool_prop ebx,BIT_MOD_ACD
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jae @f
|
|
|
|
|
call get_code_auto_data_el
|
2010-12-18 11:13:51 +01:00
|
|
|
|
|
|
|
|
|
mov edx,C_CHB
|
|
|
|
|
stdcall find_obj_in_file,edx ;eax - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> check_box
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .no_check
|
|
|
|
|
stdcall insert_text, txt_cb_b
|
|
|
|
|
call get_code_auto_data_el_cbox
|
|
|
|
|
stdcall insert_text, txt_cb_e
|
|
|
|
|
.no_check:
|
|
|
|
|
|
2010-11-11 22:47:18 +01:00
|
|
|
|
call get_code_auto_data_dop
|
2010-11-20 12:43:51 +01:00
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
mov edx,C_LIB
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall find_obj_in_file,edx ;eax - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD>
|
2010-11-20 12:43:51 +01:00
|
|
|
|
cmp eax,0
|
|
|
|
|
je @f
|
2010-12-18 11:13:51 +01:00
|
|
|
|
insert_nl
|
2010-11-20 12:43:51 +01:00
|
|
|
|
stdcall insert_text, txt_head_i
|
|
|
|
|
stdcall insert_text, txt_d_poi
|
|
|
|
|
insert_nl
|
|
|
|
|
stdcall insert_text, txt_head_l
|
|
|
|
|
stdcall insert_text, txt_db
|
|
|
|
|
stdcall insert_text, txt_str_beg
|
|
|
|
|
stdcall insert_text, txt_sys_err
|
|
|
|
|
stdcall insert_text, txt_str_end
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
call get_code_auto_data_libs_param
|
|
|
|
|
stdcall insert_text, txt_ll_start
|
|
|
|
|
call get_code_auto_data_libs_struc
|
|
|
|
|
stdcall insert_text, txt_ll_end
|
2010-12-22 18:03:22 +01:00
|
|
|
|
call get_code_auto_data_libs ;⠡<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪
|
2010-11-11 22:47:18 +01:00
|
|
|
|
@@:
|
|
|
|
|
insert_nl
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc get_code_auto_m
|
|
|
|
|
pushad
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_EDB
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
|
|
|
|
stdcall insert_text, txt_std_mouse_ed
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_text_prop, ebx,0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_CHB
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
|
|
|
|
stdcall insert_text, txt_std_mouse_cb
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_text_prop, ebx,0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;ᮧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ⮢)
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_code_auto_data_el
|
|
|
|
|
pushad
|
2010-12-22 18:03:22 +01:00
|
|
|
|
insert_nl ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ଠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_EDB
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
|
|
|
|
;1,2,3,4,...,6,...8,...,10 - w,x,y,col_fon,...,col_frame,...,col_txt,...,txt
|
2010-11-17 00:25:56 +01:00
|
|
|
|
stdcall insert_text_prop, ebx,0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
stdcall insert_text, txt_ebox
|
|
|
|
|
|
|
|
|
|
mov ecx,1
|
|
|
|
|
.prop:
|
|
|
|
|
insert_sp
|
2010-11-17 00:25:56 +01:00
|
|
|
|
stdcall insert_text_prop, ebx,ecx
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_coma
|
|
|
|
|
inc ecx
|
|
|
|
|
cmp ecx,10
|
|
|
|
|
jl .prop
|
|
|
|
|
|
|
|
|
|
insert_br
|
|
|
|
|
stdcall insert_text, txt_txt
|
|
|
|
|
|
|
|
|
|
mov edx,fp_icon
|
2010-12-08 19:45:24 +01:00
|
|
|
|
stdcall get_obj_id_str, ebx,edx
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_text, edx
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
stdcall insert_text, txt_mouse_dd
|
2010-11-29 20:11:22 +01:00
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_text, txt_0 ;<EFBFBD><EFBFBD>⢠ editbox
|
|
|
|
|
stdcall insert_bit_prop, ebx,BIT_MOD_EDIT_FOC
|
|
|
|
|
stdcall insert_bit_prop, ebx,BIT_MOD_EDIT_FIO
|
|
|
|
|
|
|
|
|
|
xchg eax,edx ;<EFBFBD><EFBFBD><EFBFBD>࠭塞 <EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD> edx
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall get_obj_text_col,ebx,10
|
2010-12-22 18:03:22 +01:00
|
|
|
|
cmp byte[edx],0 ;<EFBFBD><EFBFBD><EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>᪥ editbox
|
2010-11-29 20:11:22 +01:00
|
|
|
|
je .null_string
|
2010-12-22 18:03:22 +01:00
|
|
|
|
xchg eax,edx ;<EFBFBD><EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD> edx
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall insert_text, txt_coma
|
|
|
|
|
|
|
|
|
|
stdcall insert_text, txt_txt
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_text, edx
|
|
|
|
|
stdcall insert_text, txt_met_end
|
|
|
|
|
stdcall insert_text, txt_minus
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall insert_text, txt_txt
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_text, edx
|
|
|
|
|
stdcall insert_text, txt_minus
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall insert_text, txt_1
|
|
|
|
|
stdcall insert_text, txt_coma
|
|
|
|
|
|
|
|
|
|
stdcall insert_text, txt_txt
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_text, edx
|
|
|
|
|
stdcall insert_text, txt_met_end
|
|
|
|
|
stdcall insert_text, txt_minus
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall insert_text, txt_txt
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_text, edx
|
|
|
|
|
stdcall insert_text, txt_minus
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall insert_text, txt_1
|
|
|
|
|
.null_string:
|
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_DTT
|
2010-11-29 20:11:22 +01:00
|
|
|
|
jne @f
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_text_label_data, ebx,0
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-12-18 11:13:51 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc get_code_auto_data_el_cbox
|
|
|
|
|
pushad
|
2010-12-22 18:03:22 +01:00
|
|
|
|
insert_nl ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ଠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-12-18 11:13:51 +01:00
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-12-18 11:13:51 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
cmp dword[ebx],C_CHB
|
|
|
|
|
jne .no_check
|
|
|
|
|
;1,2,3,4,5, 6,7,8, 9 - ot_x,ot_y,w,h,ot_w_txt, col_fon,col_frame,col_txt, txt
|
|
|
|
|
|
|
|
|
|
stdcall insert_text_prop, ebx,0
|
|
|
|
|
stdcall insert_text, txt_cbox
|
|
|
|
|
insert_sp
|
|
|
|
|
|
|
|
|
|
stdcall insert_2_prop_16_bit, ebx,1,3
|
|
|
|
|
stdcall insert_text, txt_coma
|
|
|
|
|
stdcall insert_2_prop_16_bit, ebx,2,4
|
|
|
|
|
stdcall insert_text, txt_coma
|
|
|
|
|
|
|
|
|
|
stdcall insert_text_prop, ebx,5
|
|
|
|
|
stdcall insert_text, txt_coma
|
|
|
|
|
insert_sp
|
|
|
|
|
|
|
|
|
|
stdcall insert_text_prop, ebx,6
|
|
|
|
|
stdcall insert_text, txt_coma
|
|
|
|
|
stdcall insert_text_prop, ebx,7
|
|
|
|
|
stdcall insert_text, txt_coma
|
|
|
|
|
stdcall insert_text_prop, ebx,8
|
|
|
|
|
stdcall insert_text, txt_coma
|
|
|
|
|
stdcall insert_text, txt_br
|
|
|
|
|
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall insert_text, txt_txt
|
|
|
|
|
mov edx,fp_icon
|
2010-12-08 19:45:24 +01:00
|
|
|
|
stdcall get_obj_id_str, ebx,edx
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_text, edx
|
|
|
|
|
stdcall insert_text, txt_coma
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;䫠<EFBFBD><EFBFBD>
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_text,txt_0
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_bit_prop, ebx,BIT_MOD_CHE
|
|
|
|
|
stdcall insert_bit_prop, ebx,BIT_MOD_CHE_T
|
|
|
|
|
stdcall insert_bit_prop, ebx,BIT_MOD_CHE_M
|
|
|
|
|
stdcall insert_bit_prop, ebx,BIT_MOD_CHE_B
|
2010-12-18 11:13:51 +01:00
|
|
|
|
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
2010-12-18 11:13:51 +01:00
|
|
|
|
.no_check:
|
|
|
|
|
cmp dword[ebx],C_DTT
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall insert_text_label_data, ebx,0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪
|
2010-11-20 12:43:51 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_code_auto_data_libs_param
|
|
|
|
|
pushad
|
2010-12-22 18:03:22 +01:00
|
|
|
|
insert_nl ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ଠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-20 12:43:51 +01:00
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-20 12:43:51 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_LIB
|
2010-11-20 12:43:51 +01:00
|
|
|
|
jne @f
|
|
|
|
|
;0,1,2,3,4,5 - l_nam,s_dir,i_met,...
|
|
|
|
|
|
|
|
|
|
stdcall insert_text, txt_sys_dir
|
|
|
|
|
;object code
|
|
|
|
|
mov edx,fp_icon
|
2010-12-08 19:45:24 +01:00
|
|
|
|
stdcall get_obj_id_str, ebx,edx
|
2010-11-20 12:43:51 +01:00
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
stdcall insert_text,txt_db
|
|
|
|
|
;stdcall insert_text, txt_str_beg
|
|
|
|
|
stdcall insert_text_prop, ebx,1
|
|
|
|
|
;stdcall insert_text, txt_str_end
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
stdcall insert_text, txt_lib_name
|
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
stdcall insert_text,txt_db
|
|
|
|
|
stdcall insert_text, txt_str_beg
|
|
|
|
|
stdcall insert_text_prop, ebx,0
|
|
|
|
|
stdcall insert_text, txt_str_end
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
stdcall insert_text,txt_err_m_f_lib
|
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
stdcall insert_text,txt_db
|
|
|
|
|
stdcall insert_text, txt_str_beg
|
|
|
|
|
stdcall insert_text_prop, ebx,4
|
|
|
|
|
stdcall insert_text, txt_str_end
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
stdcall insert_text,txt_err_m_i_lib
|
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
stdcall insert_text,txt_db
|
|
|
|
|
stdcall insert_text, txt_str_beg
|
|
|
|
|
stdcall insert_text_prop, ebx,5
|
|
|
|
|
stdcall insert_text, txt_str_end
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-20 12:43:51 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪
|
2010-11-20 12:43:51 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_code_auto_data_libs_struc
|
|
|
|
|
pushad
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;insert_nl ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ଠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-20 12:43:51 +01:00
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-20 12:43:51 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_LIB
|
2010-11-20 12:43:51 +01:00
|
|
|
|
jne @f
|
|
|
|
|
;0,1,2,3,4,5 - l_nam,s_dir,i_met,...
|
|
|
|
|
|
|
|
|
|
stdcall insert_text, txt_lib
|
|
|
|
|
;object code
|
|
|
|
|
mov edx,fp_icon
|
2010-12-08 19:45:24 +01:00
|
|
|
|
stdcall get_obj_id_str, ebx,edx
|
2010-11-20 12:43:51 +01:00
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
insert_sp
|
|
|
|
|
stdcall insert_text, txt_ll
|
|
|
|
|
stdcall insert_text, txt_lib_name
|
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
stdcall insert_text,txt_coma
|
|
|
|
|
|
|
|
|
|
stdcall insert_text, txt_lib_path
|
|
|
|
|
|
|
|
|
|
stdcall insert_text, txt_sys_dir
|
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
stdcall insert_text,txt_coma
|
|
|
|
|
stdcall insert_text,txt_br
|
|
|
|
|
stdcall insert_text,txt_tab
|
|
|
|
|
|
|
|
|
|
stdcall insert_text,txt_err_m_f_lib
|
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
stdcall insert_text,txt_coma
|
|
|
|
|
stdcall insert_text,txt_head_l
|
|
|
|
|
stdcall insert_text,txt_coma
|
|
|
|
|
|
|
|
|
|
stdcall insert_text_prop, ebx,2
|
|
|
|
|
stdcall insert_text,txt_coma
|
|
|
|
|
|
|
|
|
|
stdcall insert_text,txt_err_m_i_lib
|
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
stdcall insert_text,txt_coma
|
|
|
|
|
stdcall insert_text,txt_head_i
|
|
|
|
|
|
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-20 12:43:51 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪
|
2010-11-17 00:25:56 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_code_auto_data_libs
|
|
|
|
|
pushad
|
2010-12-22 18:03:22 +01:00
|
|
|
|
insert_nl ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ଠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-17 00:25:56 +01:00
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-17 00:25:56 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_LIB
|
2010-11-17 00:25:56 +01:00
|
|
|
|
jne @f
|
|
|
|
|
;0,1,2,3,4,5 - l_nam,s_dir,i_met,...
|
|
|
|
|
stdcall insert_text, txt_align_4
|
|
|
|
|
stdcall insert_text_prop, ebx,2
|
|
|
|
|
stdcall insert_text, txt_d_poi
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
call get_code_lib_table
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-17 00:25:56 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;input:
|
|
|
|
|
; esi
|
|
|
|
|
align 4
|
|
|
|
|
get_code_lib_table:
|
|
|
|
|
pushad
|
|
|
|
|
mov bl,byte[esi+2]
|
|
|
|
|
mov edi,esi
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop edx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> த<EFBFBD>⥫<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
2010-11-17 00:25:56 +01:00
|
|
|
|
cmp edx,0
|
|
|
|
|
je @f
|
|
|
|
|
@@:
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-17 00:25:56 +01:00
|
|
|
|
cmp esi,0
|
|
|
|
|
je @f
|
|
|
|
|
cmp byte[esi+2],bl ;lev
|
|
|
|
|
jle @f
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ecx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-17 00:25:56 +01:00
|
|
|
|
cmp ecx,0
|
|
|
|
|
je @f
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ecx],C_IFN
|
2010-11-17 00:25:56 +01:00
|
|
|
|
jne @b
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD> 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD>
|
2010-12-18 11:13:51 +01:00
|
|
|
|
test_bool_prop ecx,BIT_MOD_IMPORT_FUNCT_COMMENT
|
|
|
|
|
jae .no_com_0
|
|
|
|
|
stdcall insert_text, txt_com
|
|
|
|
|
.no_com_0:
|
2010-11-17 00:25:56 +01:00
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text_prop, ecx,0
|
|
|
|
|
stdcall insert_text, txt_dd
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_text_prop, edx,3 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD>㭪樨
|
2010-11-17 00:25:56 +01:00
|
|
|
|
stdcall insert_text_prop, ecx,0
|
|
|
|
|
insert_nl
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
stdcall insert_text, txt_dd_0_0
|
|
|
|
|
mov esi,edi
|
|
|
|
|
@@:
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-17 00:25:56 +01:00
|
|
|
|
cmp esi,0
|
|
|
|
|
je @f
|
|
|
|
|
cmp byte[esi+2],bl ;lev
|
|
|
|
|
jle @f
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ecx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-17 00:25:56 +01:00
|
|
|
|
cmp ecx,0
|
|
|
|
|
je @f
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ecx],C_IFN
|
2010-11-17 00:25:56 +01:00
|
|
|
|
jne @b
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪樨
|
2010-12-18 11:13:51 +01:00
|
|
|
|
test_bool_prop ecx,BIT_MOD_IMPORT_FUNCT_COMMENT
|
|
|
|
|
jae .no_com_1
|
|
|
|
|
stdcall insert_text, txt_com
|
|
|
|
|
.no_com_1:
|
2010-11-17 00:25:56 +01:00
|
|
|
|
insert_tab
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_text_prop, edx,3 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD>㭪樨
|
2010-11-17 00:25:56 +01:00
|
|
|
|
stdcall insert_text_prop, ecx,0
|
|
|
|
|
stdcall insert_text, txt_db
|
|
|
|
|
stdcall insert_text, txt_str_beg
|
|
|
|
|
stdcall insert_text_prop, ecx,1
|
|
|
|
|
stdcall insert_text, txt_str_end
|
|
|
|
|
insert_nl
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
2010-11-11 22:47:18 +01:00
|
|
|
|
;
|
|
|
|
|
align 4
|
|
|
|
|
proc get_code_auto_data_dop
|
|
|
|
|
pushad
|
2010-12-22 18:03:22 +01:00
|
|
|
|
insert_nl ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ଠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_EDB
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
|
|
|
|
;1,2,3,4,...,6,...8,...,10 - w,x,y,col_fon,...,col_frame,...,col_txt,...,txt
|
2010-12-22 18:03:22 +01:00
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD>ନ<EFBFBD>㥬 ⥪<EFBFBD>⮢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> editbox-<EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
stdcall insert_text, txt_txt
|
|
|
|
|
mov edx,fp_icon
|
2010-12-08 19:45:24 +01:00
|
|
|
|
stdcall get_obj_id_str, ebx,edx
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall insert_text,edx
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall get_obj_text_col,ebx,10
|
|
|
|
|
cmp byte[edx],0
|
|
|
|
|
je .no_text
|
|
|
|
|
stdcall insert_text, txt_d_poi
|
|
|
|
|
stdcall insert_text, txt_db
|
|
|
|
|
stdcall insert_text, txt_str_beg
|
|
|
|
|
stdcall str_len,edx
|
|
|
|
|
stdcall [ted_text_add], tedit0,edx,eax,ted_opt_ed_move_cursor
|
|
|
|
|
stdcall insert_text, txt_str_end
|
|
|
|
|
insert_nl
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
2010-11-29 20:11:22 +01:00
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_met_end
|
|
|
|
|
stdcall insert_text, txt_rb
|
|
|
|
|
stdcall insert_text, txt_txt
|
|
|
|
|
mov edx,fp_icon
|
2010-12-08 19:45:24 +01:00
|
|
|
|
stdcall get_obj_id_str, ebx,edx
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
|
|
|
|
|
stdcall insert_text, txt_minus
|
|
|
|
|
stdcall insert_text, txt_txt
|
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
stdcall insert_text, txt_met_end
|
|
|
|
|
|
|
|
|
|
insert_plus
|
|
|
|
|
stdcall insert_text_prop,ebx,9
|
|
|
|
|
insert_plus
|
|
|
|
|
stdcall insert_text, txt_3
|
|
|
|
|
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
jmp @f
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
.no_text: ;<EFBFBD><EFBFBD>ࢮ<EFBFBD><EFBFBD>砫쭮 ⥪<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall insert_text, txt_times
|
|
|
|
|
|
|
|
|
|
stdcall insert_text_prop,ebx,9
|
|
|
|
|
insert_plus
|
|
|
|
|
stdcall insert_text, txt_2
|
|
|
|
|
stdcall insert_text, txt_db
|
|
|
|
|
insert_0
|
|
|
|
|
insert_nl
|
2010-11-11 22:47:18 +01:00
|
|
|
|
@@:
|
2010-12-18 11:13:51 +01:00
|
|
|
|
cmp dword[ebx],C_CHB
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall insert_text_label_data, ebx,9
|
|
|
|
|
@@:
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD>㭪<EFBFBD><EFBFBD>ﬨ
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_code_auto_but
|
|
|
|
|
pushad
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_BUT
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
|
|
|
|
insert_tab
|
|
|
|
|
insert_cmp
|
|
|
|
|
insert_reg8 txt_ah
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall get_obj_text_col,ebx,0
|
|
|
|
|
stdcall str_len,edx
|
|
|
|
|
stdcall [ted_text_add], tedit0,edx,eax,ted_opt_ed_move_cursor
|
|
|
|
|
insert_nl
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_jne_f
|
|
|
|
|
insert_nl
|
|
|
|
|
insert_tab
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_call
|
|
|
|
|
stdcall get_obj_text_col,ebx,6
|
|
|
|
|
stdcall str_len,edx
|
|
|
|
|
cmp eax,1
|
|
|
|
|
jl .c_fun
|
|
|
|
|
stdcall [ted_text_add], tedit0,edx,eax,ted_opt_ed_move_cursor
|
|
|
|
|
.c_fun:
|
|
|
|
|
insert_nl
|
|
|
|
|
insert_tab
|
|
|
|
|
insert_a_met ;@@:
|
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD>६ <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪権 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨩ <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_code_a_but_fun
|
|
|
|
|
pushad
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_BUT
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
|
|
|
|
stdcall get_obj_text_col,ebx,6
|
|
|
|
|
stdcall str_len,edx
|
|
|
|
|
cmp eax,1
|
|
|
|
|
jl .c_fun
|
|
|
|
|
insert_nl
|
|
|
|
|
stdcall insert_text, txt_align_4
|
|
|
|
|
stdcall [ted_text_add], tedit0,edx,eax,ted_opt_ed_move_cursor
|
|
|
|
|
insert_d_poi
|
|
|
|
|
insert_nl
|
|
|
|
|
insert_tab
|
|
|
|
|
insert_ret
|
|
|
|
|
.c_fun:
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc get_code_key, p_obj:dword
|
|
|
|
|
pushad
|
|
|
|
|
insert_nl
|
|
|
|
|
mov ebx,dword[p_obj]
|
|
|
|
|
|
|
|
|
|
insert_key_beg
|
2010-12-22 18:03:22 +01:00
|
|
|
|
call get_code_funct_key ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>맮<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_key_end
|
|
|
|
|
|
|
|
|
|
insert_nl
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc get_code_funct_key
|
|
|
|
|
pushad
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_EDB
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
|
|
|
|
stdcall insert_text, txt_std_key_ed
|
|
|
|
|
stdcall insert_text_prop,ebx,0
|
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD><EFBFBD> 'include ...'
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_code_incl, p_obj:dword
|
|
|
|
|
pushad
|
|
|
|
|
stdcall insert_text, txt_incl
|
|
|
|
|
mov ebx,dword[p_obj]
|
|
|
|
|
stdcall insert_text_prop,ebx,0
|
|
|
|
|
|
|
|
|
|
stdcall get_obj_text_col,ebx,1
|
|
|
|
|
stdcall str_len,edx
|
|
|
|
|
cmp eax,1
|
|
|
|
|
jl @f
|
|
|
|
|
insert_sp
|
|
|
|
|
insert_com
|
|
|
|
|
stdcall [ted_text_add], tedit0,edx,eax,ted_opt_ed_move_cursor
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
insert_nl
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;ᮧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_code_window, p_obj:dword
|
|
|
|
|
pushad
|
|
|
|
|
mov ebx,dword[p_obj]
|
|
|
|
|
;2,3,4,5,6 - x,y,w,h,col_bkg
|
|
|
|
|
|
|
|
|
|
stdcall insert_text, txt_draw_wb
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
insert_xor
|
|
|
|
|
insert_reg txt_eax
|
|
|
|
|
insert_coma
|
|
|
|
|
insert_reg txt_eax
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
;mov ebx,...
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_ebx
|
|
|
|
|
insert_coma
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_2_prop_16_bit, ebx,2,4
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
;mov ecx,...
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_ecx
|
|
|
|
|
insert_coma
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_2_prop_16_bit, ebx,3,5
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
;mov edx,...
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_edx
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall insert_text_prop, ebx,6
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
;or edx,0x33000000
|
2010-11-17 00:25:56 +01:00
|
|
|
|
insert_tab
|
2010-11-11 22:47:18 +01:00
|
|
|
|
stdcall insert_text, txt_or
|
|
|
|
|
insert_reg txt_edx
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall insert_text, txt_0x33000000
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
;mov edi,...
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_edi
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall insert_text_prop, ebx,0
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_i_40
|
2010-11-17 00:25:56 +01:00
|
|
|
|
insert_nl
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
call get_code_draw_obj
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD>ନ<EFBFBD>㥬 <EFBFBD>맮<EFBFBD> <EFBFBD>㭪権 <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ⮢
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_code_draw_obj
|
|
|
|
|
pushad
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], 0,tree2
|
|
|
|
|
pop esi
|
|
|
|
|
.beg_iterat:
|
|
|
|
|
cmp esi,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_data], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
cmp ebx,0
|
|
|
|
|
je .find_no
|
|
|
|
|
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_EDB
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
|
|
|
|
stdcall insert_text, txt_editb_draw
|
|
|
|
|
stdcall insert_text_prop, ebx,0
|
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_CHB
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
|
|
|
|
stdcall insert_text, txt_cbox_draw
|
|
|
|
|
stdcall insert_text_prop, ebx,0
|
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
2010-12-13 16:21:52 +01:00
|
|
|
|
cmp dword[ebx],C_BUT
|
|
|
|
|
jne .ob_draw_but
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_eax
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall insert_text, txt_8
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_ebx
|
|
|
|
|
insert_coma
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_2_prop_16_bit, ebx,1,3
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_ecx
|
|
|
|
|
insert_coma
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_2_prop_16_bit, ebx,2,4
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_edx
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall insert_text_prop, ebx,0
|
2010-12-13 16:21:52 +01:00
|
|
|
|
test_bool_prop ebx,BIT_MOD_BUT_NFON
|
|
|
|
|
jnc @f
|
|
|
|
|
stdcall insert_text, txt_plus
|
|
|
|
|
stdcall insert_text, txt_bit_30
|
|
|
|
|
@@:
|
|
|
|
|
test_bool_prop ebx,BIT_MOD_BUT_NBORD
|
|
|
|
|
jnc @f
|
|
|
|
|
stdcall insert_text, txt_plus
|
|
|
|
|
stdcall insert_text, txt_bit_29
|
|
|
|
|
@@:
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_esi
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall insert_text_prop, ebx,5 ;button color
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_i_40
|
|
|
|
|
insert_nl
|
2010-12-13 16:21:52 +01:00
|
|
|
|
.ob_draw_but:
|
|
|
|
|
cmp dword[ebx],C_REC
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jne @f
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_eax
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall insert_text, txt_1
|
|
|
|
|
stdcall insert_text, txt_3
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_ebx
|
|
|
|
|
insert_coma
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_2_prop_16_bit, ebx,1,3
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_ecx
|
|
|
|
|
insert_coma
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_2_prop_16_bit, ebx,2,4
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_edx
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall insert_text_prop, ebx,0 ;rect color
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_i_40
|
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
2010-12-22 18:03:22 +01:00
|
|
|
|
cmp dword[ebx],C_DTT ;<EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⥪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>१ <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD>. 4
|
2010-12-13 16:21:52 +01:00
|
|
|
|
jne .ob_draw_text
|
2010-11-29 20:11:22 +01:00
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_eax
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall insert_text, txt_4
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_ebx
|
|
|
|
|
insert_coma
|
2010-12-18 11:13:51 +01:00
|
|
|
|
stdcall insert_2_prop_16_bit, ebx,1,2
|
2010-11-29 20:11:22 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_ecx
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall insert_text_prop, ebx,3
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_bit_prop, ebx,BIT_MOD_TXT_ASCII_0 ;31 - <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD> ASCIIZ
|
|
|
|
|
stdcall insert_bit_prop, ebx,BIT_MOD_TXT_NO_TRAN ;30 - <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>筮<EFBFBD><EFBFBD> ⥪<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall insert_bit_prop, ebx,BIT_MOD_TXT_CHAR2 ;28 - <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> 2-<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-29 20:11:22 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_edx
|
|
|
|
|
insert_coma
|
|
|
|
|
stdcall insert_text, txt_txt
|
|
|
|
|
mov edx,fp_icon
|
2010-12-08 19:45:24 +01:00
|
|
|
|
stdcall get_obj_id_str, ebx,edx
|
2010-11-29 20:11:22 +01:00
|
|
|
|
stdcall insert_text,edx
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
;mov esi,...
|
2010-12-13 16:21:52 +01:00
|
|
|
|
test_bool_prop ebx,BIT_MOD_TXT_NO_TRAN
|
|
|
|
|
jnc @f
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_mov
|
|
|
|
|
insert_reg txt_edi
|
|
|
|
|
insert_coma
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_text_prop, ebx,4 ;梥<EFBFBD> 䮭<EFBFBD>
|
2010-12-13 16:21:52 +01:00
|
|
|
|
insert_nl
|
|
|
|
|
@@:
|
2010-11-29 20:11:22 +01:00
|
|
|
|
|
|
|
|
|
insert_tab
|
|
|
|
|
stdcall insert_text, txt_i_40
|
|
|
|
|
insert_nl
|
2010-12-13 16:21:52 +01:00
|
|
|
|
.ob_draw_text:
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], esi,tree2
|
2010-12-22 18:03:22 +01:00
|
|
|
|
pop esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>饬<EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
jmp .beg_iterat
|
|
|
|
|
.find_no:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;ᮧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>६<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_code_variable, p_obj:dword,o_lev:dword
|
|
|
|
|
pushad
|
|
|
|
|
mov ebx,dword[p_obj]
|
|
|
|
|
;0,1,2 - name,value,comment
|
|
|
|
|
|
|
|
|
|
mov ecx,dword[o_lev]
|
|
|
|
|
cmp cl,0
|
2010-12-22 18:03:22 +01:00
|
|
|
|
je .no_tab ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>横<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (0-1 = 2^32-1)
|
2010-12-13 16:21:52 +01:00
|
|
|
|
and ecx,0xff
|
2010-11-11 22:47:18 +01:00
|
|
|
|
cld
|
|
|
|
|
@@:
|
2010-12-22 18:03:22 +01:00
|
|
|
|
insert_tab ;<EFBFBD><EFBFBD>ନ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>㯠 <EFBFBD><EFBFBD>। <EFBFBD><EFBFBD>६<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
loop @b
|
|
|
|
|
.no_tab:
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_text_prop, ebx,0 ;<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>६<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_sp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
mov ecx,dword[ebx+u_object.typid-u_object] ;ecx - <EFBFBD>⭮<EFBFBD><EFBFBD>⥫<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> த<EFBFBD>⥫<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> (<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
2010-11-11 22:47:18 +01:00
|
|
|
|
xor eax,eax
|
|
|
|
|
mov ax,[tree2.info_size]
|
2010-12-22 18:03:22 +01:00
|
|
|
|
imul ecx,eax ;㬭<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> ࠧ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
add ecx,[tree2.data_info] ;ecx - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> த<EFBFBD>⥫<EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>ࠢ<EFBFBD><EFBFBD>쭮<EFBFBD><EFBFBD><EFBFBD> ecx ???
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_text_prop, ecx,0 ;⨯ <EFBFBD><EFBFBD>६<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
insert_sp
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall insert_text_prop, ebx,1 ;<EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
stdcall get_obj_text_col,ebx,2 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
stdcall str_len,edx
|
|
|
|
|
cmp eax,1
|
|
|
|
|
jl @f
|
|
|
|
|
insert_sp
|
|
|
|
|
insert_com
|
|
|
|
|
stdcall [ted_text_add], tedit0,edx,eax,ted_opt_ed_move_cursor
|
|
|
|
|
@@:
|
|
|
|
|
insert_nl
|
|
|
|
|
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;--- ⥪<EFBFBD>⮢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD> ---
|
2010-11-17 00:25:56 +01:00
|
|
|
|
txt_str_beg db 39,0
|
|
|
|
|
txt_str_end db 39,',0',0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
txt_coma db ',',0
|
2010-12-18 11:13:51 +01:00
|
|
|
|
txt_skob_o db '(',0
|
|
|
|
|
txt_skob_c db ')',0
|
2010-12-22 18:03:22 +01:00
|
|
|
|
txt_skob_fo db '{',0 ;<EFBFBD><EFBFBD><EFBFBD> 䨣<EFBFBD>ୠ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
txt_skob_fc db '}',0 ;<EFBFBD><EFBFBD><EFBFBD> 䨣<EFBFBD>ୠ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
txt_i_40 db 'int 0x40',13,0
|
|
|
|
|
txt_0 db '0',0
|
|
|
|
|
txt_1 db '1',0
|
|
|
|
|
txt_2 db '2',0
|
|
|
|
|
txt_3 db '3',0
|
|
|
|
|
txt_4 db '4',0
|
|
|
|
|
txt_8 db '8',0
|
|
|
|
|
txt_plus db '+',0
|
2010-11-29 20:11:22 +01:00
|
|
|
|
txt_minus db '-',0
|
|
|
|
|
;txt_dol db '$',0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
txt_nl db 13,0
|
|
|
|
|
txt_com db ';',0
|
|
|
|
|
txt_sp db ' ',0
|
|
|
|
|
txt_tab db 9,0
|
|
|
|
|
txt_br db '\',13,9,0
|
2010-11-17 00:25:56 +01:00
|
|
|
|
txt_txt db 'txt_',0
|
|
|
|
|
txt_db db ' db ',0
|
|
|
|
|
txt_dd db ' dd ',0
|
2010-11-29 20:11:22 +01:00
|
|
|
|
txt_rb db ' rb ',0
|
2010-11-17 00:25:56 +01:00
|
|
|
|
txt_dd_0_0 db 9,'dd 0,0',13,0
|
|
|
|
|
txt_mouse_dd db ', mouse_dd, ',0
|
|
|
|
|
txt_times db ':',13,9,'times ',0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
txt_draw_wb:
|
|
|
|
|
db 13,'align 4',13,'draw_window:',13,'pushad',13,9,'mcall 12,1',13,0
|
|
|
|
|
txt_draw_we:
|
|
|
|
|
db 9,'mcall 12,2',13,'popad',13,9,'ret',13,0
|
2010-11-20 12:43:51 +01:00
|
|
|
|
txt_sys_dir db 'system_dir_',0
|
|
|
|
|
txt_lib_name db 'lib_name_',0
|
|
|
|
|
txt_lib_path db ' sys_path, library_path, ',0
|
|
|
|
|
txt_sys_err db '<27><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20>訡<EFBFBD><E8A8A1>',0
|
|
|
|
|
txt_ll_start db 'l_libs_start:',13,0
|
|
|
|
|
txt_lib db 9,'lib_',0
|
|
|
|
|
txt_ll db 'l_libs ',0
|
|
|
|
|
txt_err_m_f_lib db 'err_msg_found_lib_',0
|
|
|
|
|
txt_head_l db 'head_f_l',0
|
|
|
|
|
txt_err_m_i_lib db 'err_msg_import_',0
|
|
|
|
|
txt_head_i db 'head_f_i',0
|
|
|
|
|
txt_ll_end db 'l_libs_end:',13,0
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;txt_bit_28 db '0x10000000',0
|
2010-12-13 16:21:52 +01:00
|
|
|
|
txt_bit_29 db '0x20000000',0
|
|
|
|
|
txt_bit_30 db '0x40000000',0
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;txt_bit_31 db '0x80000000',0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
txt_0x33000000 db '0x33000000',0 ;tmp
|
2010-12-18 11:13:51 +01:00
|
|
|
|
txt_struc db 'struc',0
|
|
|
|
|
txt_t db 't',0
|
2010-11-29 20:11:22 +01:00
|
|
|
|
txt_met_end db '.end',0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
txt_ends db 'ends',13,13,0
|
|
|
|
|
txt_mov db 'mov ',0
|
|
|
|
|
txt_xor db 'xor ',0
|
|
|
|
|
txt_or db 'or ',0
|
|
|
|
|
txt_cmp db 'cmp ',0
|
|
|
|
|
txt_call db 'call ',0
|
|
|
|
|
txt_jne_f db 'jne @f',0
|
|
|
|
|
txt_a_met db '@@:',0
|
|
|
|
|
txt_ah db 'ah',0
|
|
|
|
|
txt_eax db 'eax',0
|
|
|
|
|
txt_ebx db 'ebx',0
|
|
|
|
|
txt_ecx db 'ecx',0
|
|
|
|
|
txt_edx db 'edx',0
|
|
|
|
|
txt_edi db 'edi',0
|
|
|
|
|
txt_esi db 'esi',0
|
|
|
|
|
txt_align_4 db 'align 4',13,0
|
|
|
|
|
txt_d_poi db ':',0
|
|
|
|
|
txt_ret db 'ret',13,0
|
2010-12-18 11:13:51 +01:00
|
|
|
|
txt_shl_16 db ' shl 16',0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
txt_std_mouse_ed:
|
|
|
|
|
db 9,'stdcall [edit_box_mouse], ',0
|
2010-12-18 11:13:51 +01:00
|
|
|
|
txt_std_init_cb:
|
|
|
|
|
db 9,'init_checkboxes2 check_boxes,check_boxes_end',13,0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
txt_std_mouse_cb:
|
|
|
|
|
db 9,'stdcall [check_box_mouse], ',0
|
|
|
|
|
txt_std_key_ed:
|
|
|
|
|
db 9,'stdcall [edit_box_key], ',0
|
|
|
|
|
txt_incl:
|
|
|
|
|
db 'include ',0
|
2010-12-18 11:13:51 +01:00
|
|
|
|
|
|
|
|
|
txt_cbox db ' check_box2',0
|
|
|
|
|
txt_cb_b db 13,'check_boxes:',0
|
|
|
|
|
txt_cb_e db 'check_boxes_end:',13,0
|
|
|
|
|
|
2010-11-20 12:43:51 +01:00
|
|
|
|
txt_ebox db ' edit_box',0
|
2010-12-31 18:11:57 +01:00
|
|
|
|
txt_editb_draw db 9,'stdcall [edit_box_draw], ',0
|
|
|
|
|
txt_cbox_draw db 9,'stdcall [check_box_draw], ',0
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD>砫<EFBFBD> <EFBFBD>㭪樨 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
txt_but_beg db 'align 4',13,'button:',13,9,'mcall 17',13,0
|
|
|
|
|
txt_but_mid db 9,'cmp ah,1',13,9,'jne still',13,'.exit:',13,0
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪樨 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>襭<EFBFBD><EFBFBD> <EFBFBD>ணࠬ<EFBFBD>)
|
|
|
|
|
txt_but_end db 9,'mcall -1',13,0
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
txt_key_1:
|
|
|
|
|
db 'align 4',13,'key:',13,9,'mcall 2',13
|
|
|
|
|
txt_key_2:
|
|
|
|
|
db 9,'jmp still',13
|
|
|
|
|
txt_key_3:
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>浪<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> <EFBFBD>⭮<EFBFBD><EFBFBD>⥫쭮 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> tree2
|
2010-12-08 19:45:24 +01:00
|
|
|
|
;output:
|
2010-12-22 18:03:22 +01:00
|
|
|
|
; txt_buf - <EFBFBD><EFBFBD>ப<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
2010-11-11 22:47:18 +01:00
|
|
|
|
align 4
|
2010-12-08 19:45:24 +01:00
|
|
|
|
proc get_obj_id_str, p_obj:dword, txt_buf:dword
|
2010-11-11 22:47:18 +01:00
|
|
|
|
push eax ecx edx
|
|
|
|
|
mov eax,dword[p_obj]
|
|
|
|
|
sub eax,[tree2.data_info]
|
|
|
|
|
xor edx,edx
|
|
|
|
|
xor ecx,ecx
|
|
|
|
|
mov cx,word[tree2.info_size]
|
|
|
|
|
div ecx
|
|
|
|
|
|
|
|
|
|
mov edx,dword[txt_buf]
|
|
|
|
|
mov byte[edx],0
|
|
|
|
|
stdcall str_cat_value,edx,eax
|
|
|
|
|
pop edx ecx eax
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>浪<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> <EFBFBD>⭮<EFBFBD><EFBFBD>⥫쭮 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> tree2
|
2010-12-08 19:45:24 +01:00
|
|
|
|
;output:
|
2010-12-22 18:03:22 +01:00
|
|
|
|
; eax - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
2010-12-08 19:45:24 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc get_obj_id, p_obj:dword
|
|
|
|
|
push ecx edx
|
|
|
|
|
mov eax,dword[p_obj]
|
|
|
|
|
sub eax,[tree2.data_info]
|
|
|
|
|
xor edx,edx
|
|
|
|
|
xor ecx,ecx
|
|
|
|
|
mov cx,word[tree2.info_size]
|
|
|
|
|
div ecx
|
|
|
|
|
pop edx ecx
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2010-12-22 18:03:22 +01:00
|
|
|
|
;--- ⥪<EFBFBD>⮢<EFBFBD><EFBFBD> <EFBFBD>㭪樨 ---
|
|
|
|
|
|
|
|
|
|
;<EFBFBD>롨ࠥ<EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᨢ<EFBFBD>, <EFBFBD><EFBFBD> 㪠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;input:
|
|
|
|
|
; str - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᨢ <EFBFBD><EFBFBD>ப
|
|
|
|
|
; ind - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD>
|
|
|
|
|
;output:
|
|
|
|
|
; edi - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
proc get_string_by_ind, str:dword, ind:dword
|
|
|
|
|
push eax ebx ecx
|
|
|
|
|
mov edi,[str]
|
|
|
|
|
mov ebx,[ind]
|
|
|
|
|
xor al,al ;0 - ᨬ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD>
|
|
|
|
|
@@:
|
|
|
|
|
cmp ebx,0
|
|
|
|
|
jle @f ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD> <EFBFBD> 㪠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮬ
|
|
|
|
|
xor ecx,ecx
|
|
|
|
|
dec ecx ;ecx - <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᬠ<EFBFBD>ਢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
cld
|
|
|
|
|
repne scasb ;<EFBFBD>饬 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD> (al=0)
|
|
|
|
|
cmp byte[edi],0
|
|
|
|
|
je @f ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>饩 <EFBFBD><EFBFBD>ப<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>室 <EFBFBD><EFBFBD> 横<EFBFBD><EFBFBD>
|
|
|
|
|
dec ebx
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
pop ecx ebx eax
|
|
|
|
|
ret
|
|
|
|
|
endp
|
2010-11-11 22:47:18 +01:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc mem_clear, mem:dword, len:dword
|
|
|
|
|
push eax ecx edi
|
|
|
|
|
cld
|
|
|
|
|
xor al,al
|
|
|
|
|
mov edi, dword[mem]
|
|
|
|
|
mov ecx, dword[len]
|
|
|
|
|
repne stosb
|
|
|
|
|
pop edi ecx eax
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc str_cat, str1:dword, str2:dword
|
|
|
|
|
push eax ecx edi esi
|
|
|
|
|
mov esi,dword[str2]
|
|
|
|
|
stdcall str_len,esi
|
|
|
|
|
mov ecx,eax
|
|
|
|
|
inc ecx
|
|
|
|
|
mov edi,dword[str1]
|
|
|
|
|
stdcall str_len,edi
|
|
|
|
|
add edi,eax
|
|
|
|
|
cld
|
|
|
|
|
repne movsb
|
|
|
|
|
pop esi edi ecx eax
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc str_cat_value, str1:dword, value:dword
|
|
|
|
|
pushad
|
|
|
|
|
mov edi,[str1]
|
|
|
|
|
stdcall str_len,edi
|
|
|
|
|
add edi,eax
|
|
|
|
|
mov eax,[value]
|
|
|
|
|
call tl_convert_to_str
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;output:
|
|
|
|
|
; eax = strlen
|
|
|
|
|
align 4
|
|
|
|
|
proc str_len, str1:dword
|
|
|
|
|
mov eax,[str1]
|
|
|
|
|
@@:
|
|
|
|
|
cmp byte[eax],0
|
|
|
|
|
je @f
|
|
|
|
|
inc eax
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
sub eax,[str1]
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;input:
|
|
|
|
|
; eax = value
|
|
|
|
|
; edi = string buffer
|
|
|
|
|
align 4
|
|
|
|
|
tl_convert_to_str:
|
|
|
|
|
pushad
|
|
|
|
|
stdcall mem_clear,edi,12
|
|
|
|
|
call .str
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
.str:
|
2010-12-22 18:03:22 +01:00
|
|
|
|
mov ecx,0x0a ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>⥬<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ॣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ebx,eax,ecx,edx <EFBFBD>室<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ࠬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> eax - <EFBFBD><EFBFBD>
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD>ॢ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD> ASCII <EFBFBD><EFBFBD>ப<EFBFBD> <EFBFBD>室<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ecx=<EFBFBD><EFBFBD><EFBFBD>⥬<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> edi <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㤠 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD>, <EFBFBD>㤥<EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD>, <EFBFBD><EFBFBD><EFBFBD>祬 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>६<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
cmp eax,ecx ;<EFBFBD>ࠢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD> eax <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 祬 <EFBFBD> ecx <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>३<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> @@-1 <EFBFBD>.<EFBFBD>. <EFBFBD><EFBFBD> pop eax
|
2010-11-11 22:47:18 +01:00
|
|
|
|
jb @f
|
2010-12-22 18:03:22 +01:00
|
|
|
|
xor edx,edx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> edx
|
|
|
|
|
div ecx ;ࠧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮪ <EFBFBD> edx
|
|
|
|
|
push edx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD>⥪
|
|
|
|
|
;dec edi ;ᬥ饭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ப<EFBFBD>
|
|
|
|
|
call .str ;<EFBFBD><EFBFBD>३<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> ᠬ<EFBFBD> ᥡ<EFBFBD> <EFBFBD>.<EFBFBD>. <EFBFBD>맢<EFBFBD><EFBFBD><EFBFBD> ᠬ<EFBFBD> ᥡ<EFBFBD> <EFBFBD> ⠪ <EFBFBD><EFBFBD> ⮣<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> eax <EFBFBD><EFBFBD> <EFBFBD>⠭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 祬 <EFBFBD> ecx
|
2010-11-11 22:47:18 +01:00
|
|
|
|
pop eax
|
2010-12-22 18:03:22 +01:00
|
|
|
|
@@: ;cmp al,10 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD> <EFBFBD> al 祬 10 (<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>⥬<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 10 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <EFBFBD><EFBFBD>譠<EFBFBD>))
|
|
|
|
|
or al,0x30 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 祬 <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stosb ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> ॣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> al <EFBFBD> <EFBFBD>祪<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> es:edi
|
2010-11-11 22:47:18 +01:00
|
|
|
|
ret
|