2007-02-01 12:46:48 +03:00
|
|
|
|
; <Lrz> 01.02.2007 <EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ edit_box, <EFBFBD><EFBFBD><EFBFBD>ࠢ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
; <Lrz> 26.01.2007 <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> .check_offset
|
|
|
|
|
; <Lrz> 24.01.2007 <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> )).
|
|
|
|
|
; <Lrz> 22.01.2007 <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> ࠡ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>襩 del & backspase
|
|
|
|
|
; <Lrz> 20.01.2007 ॠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>뤥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⥪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> shift
|
|
|
|
|
; <Lrz> 12.12.2006 ॠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>প<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> insert <EFBFBD> ᥣ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠡ<EFBFBD>⠥<EFBFBD>!!!!
|
|
|
|
|
; <Lrz> 07.12.2006 <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><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><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᥭ<EFBFBD><EFBFBD> ᨬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
; <Lrz> 03.09.2006 <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>⪠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 16 <EFBFBD><EFBFBD>⭮<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>䬥⨪<EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
; <Lrz> 09.08.2006 <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> DEL <EFBFBD> Backspace, 㬥<EFBFBD><EFBFBD>襭 ࠧ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD>믮<EFBFBD><EFBFBD>塞<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
; <Lrz> 21.07.2006 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Del, ⥯<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>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <EFBFBD><EFBFBD><EFBFBD><EFBFBD>客 <EFBFBD><EFBFBD><EFBFBD>ᨬ (Maxxxx32) email: maxxxxm@mail.ru
|
2007-02-01 12:46:48 +03:00
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 13.06.06 10:40
|
2006-11-02 17:18:23 +03:00
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>室<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>ணࠬ<EFBFBD><EFBFBD> use_edit_box,
|
|
|
|
|
; <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>:
|
|
|
|
|
; edit_box.draw - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD>;
|
|
|
|
|
; edit_box.key - <EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;
|
|
|
|
|
; edit_box.mouse - <EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD>;
|
|
|
|
|
; edit_box.focus - <EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䮪<EFBFBD><EFBFBD><EFBFBD>;
|
|
|
|
|
; edit_box.blur - <EFBFBD><EFBFBD><EFBFBD> ࠧ<EFBFBD>뢠<EFBFBD><EFBFBD><EFBFBD>;
|
|
|
|
|
; edit_box.get_n - <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><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><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><EFBFBD><EFBFBD>:
|
|
|
|
|
; some_edit edit_box 100,10,30,0x00ffffff,0,0x00aaaaaa,0,255,some_edit_text
|
2007-02-01 12:46:48 +03: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>࠭,
|
2006-11-02 17:18:23 +03: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><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>, <EFBFBD><EFBFBD><EFBFBD>ਬ<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᨬ<EFBFBD><EFBFBD>쭮<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢮ 255:
|
|
|
|
|
; some_edit_text:
|
|
|
|
|
; rb 256 ;255+1
|
|
|
|
|
|
|
|
|
|
; <EFBFBD>ਬ<EFBFBD><EFBFBD> <EFBFBD>맮<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>楤<EFBFBD><EFBFBD><EFBFBD>:
|
|
|
|
|
; mov edi,some_edit
|
|
|
|
|
; call edit_box.draw
|
|
|
|
|
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>맮<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>楤<EFBFBD><EFBFBD><EFBFBD> edit_box.key <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
; <EFBFBD><EFBFBD>室<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> ah, <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>
|
|
|
|
|
; 2-<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᥬ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD>ਬ<EFBFBD><EFBFBD>:
|
|
|
|
|
; mov eax,2
|
|
|
|
|
; int 0x40
|
|
|
|
|
; mov edi,some_edit1
|
|
|
|
|
; call edit_box.key
|
|
|
|
|
; mov edi,some_edit2
|
|
|
|
|
; call edit_box.key
|
|
|
|
|
; <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>⨢<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> edit box
|
|
|
|
|
; 䮪<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
macro use_edit_box
|
|
|
|
|
{
|
|
|
|
|
edit_box:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
ed_width equ [edi] ;<EFBFBD><EFBFBD>ਭ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_left equ [edi+4] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>
|
|
|
|
|
ed_top equ [edi+8] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>
|
|
|
|
|
ed_color equ [edi+12] ;梥<EFBFBD> 䮭<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_focus_border_color equ [edi+16] ;梥<EFBFBD> ࠬ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_blur_border_color equ [edi+20] ;梥<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⨢<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_text_color equ [edi+24] ;梥<EFBFBD> ⥪<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_max equ [edi+28] ;<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>
|
|
|
|
|
ed_text equ [edi+32] ;㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_flags equ [edi+36] ;䫠<EFBFBD><EFBFBD>
|
|
|
|
|
ed_size equ [edi+38] ;<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD> ᨬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_pos equ [edi+42] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_offset equ [edi+46] ;ᬥ饭<EFBFBD><EFBFBD>
|
|
|
|
|
cl_curs_x equ [edi+50] ;<EFBFBD>।<EFBFBD><EFBFBD><EFBFBD>饥 <EFBFBD><EFBFBD><EFBFBD>न<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>
|
|
|
|
|
cl_curs_y equ [edi+54] ;<EFBFBD>।<EFBFBD><EFBFBD><EFBFBD>饥 <EFBFBD><EFBFBD><EFBFBD>न<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>
|
|
|
|
|
ed_shift_pos equ [edi+58]
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ed_height=14 ; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-02-01 12:46:48 +03:00
|
|
|
|
shift_color=0x6a9480
|
|
|
|
|
ed_insert=10000b
|
|
|
|
|
ed_insert_cl=1111111111101111b
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;==========================================================
|
|
|
|
|
;=== <EFBFBD><EFBFBD><EFBFBD>楤<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD> =================================
|
|
|
|
|
;==========================================================
|
|
|
|
|
.draw:
|
|
|
|
|
pusha
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>㥬 ࠬ<EFBFBD><EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
call .draw_border ; <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD>⠡<EFBFBD><EFBFBD>쭠
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.draw_bg_cursor_text:
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 ᬥ饭<EFBFBD><EFBFBD>, <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
call .check_offset ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>樨 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>⠡<EFBFBD><EFBFBD>쭠
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>㥬 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>७<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
call .draw_bg ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>אַ㣮<EFBFBD>쭨<EFBFBD> ࠡ<EFBFBD>祩 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.draw_cursor_text:
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>㥬 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD><EFBFBD> ----
|
|
|
|
|
test word ed_flags,ed_focus
|
|
|
|
|
je @f
|
|
|
|
|
call .draw_cursor
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
call .draw_text
|
2006-11-02 17:18:23 +03:00
|
|
|
|
popa
|
|
|
|
|
ret
|
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;.str:
|
|
|
|
|
; 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><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
|
|
|
|
|
; jb @f
|
|
|
|
|
; 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
|
|
|
|
|
; pop eax
|
|
|
|
|
; @@: ;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>))
|
|
|
|
|
; ;sbb al,$69 ;- <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>.<EFBFBD>. <EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> ࠡ<EFBFBD>⠥<EFBFBD>
|
|
|
|
|
; ;das ;<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> al <EFBFBD><EFBFBD> 66h (<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
|
|
|
|
|
;
|
|
|
|
|
; ret ;<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>-<EFBFBD><EFBFBD> <EFBFBD>맮<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>⮫쪮 ࠧ <EFBFBD><EFBFBD> <EFBFBD> <EFBFBD>㤥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>楤<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD> ⥪<EFBFBD><EFBFBD><EFBFBD> --------------------------
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
.draw_text:
|
|
|
|
|
;--- <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> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
call .get_n
|
|
|
|
|
mov esi,ed_size
|
|
|
|
|
mov ebx,ed_offset
|
|
|
|
|
sub esi,ebx
|
|
|
|
|
cmp eax,esi
|
|
|
|
|
jae @F
|
|
|
|
|
mov esi,eax ;<EFBFBD>⮡<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>室<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>।<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>࠭<EFBFBD>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>㥬 ⥪<EFBFBD><EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
@@: mov eax,4
|
|
|
|
|
mov ebx,ed_left
|
|
|
|
|
mov edx,ed_offset
|
|
|
|
|
add ebx,2
|
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,ed_top
|
|
|
|
|
add ebx,4
|
|
|
|
|
mov ecx,ed_text_color
|
|
|
|
|
add edx,ed_text
|
|
|
|
|
int 0x40
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>楤<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD> 䮭<EFBFBD> ----------------------------
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;<EFBFBD>室<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;eax
|
|
|
|
|
;edx - color
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
.draw_bg_eax:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov ecx,ed_top
|
|
|
|
|
add ecx,1
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx,13
|
|
|
|
|
mov eax,13
|
|
|
|
|
int 0x40
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
jmp @f
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.draw_bg:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov ebx,ed_left
|
|
|
|
|
add ebx,1
|
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,ed_width
|
|
|
|
|
sub ebx,1
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
@@:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov ecx,ed_top
|
|
|
|
|
mov eax,13
|
|
|
|
|
add ecx,1
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov edx,ed_color
|
|
|
|
|
mov cx,ed_height
|
|
|
|
|
sub ecx,1
|
|
|
|
|
int 0x40
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;----------------------------------------------------------
|
2007-02-01 12:46:48 +03: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><EFBFBD> --------------
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
.get_n:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov eax,ed_width ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>祬 <EFBFBD><EFBFBD>ਭ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
xor edx,edx ;१<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᯮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> edx:eax <EFBFBD> eax - <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮪
|
|
|
|
|
sub eax,4 ;<EFBFBD><EFBFBD><EFBFBD>⨬ 4
|
|
|
|
|
mov ebx,6 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>㧬<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥫<EFBFBD>
|
|
|
|
|
div ebx ;ࠧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 6
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>楤<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> --------------------------
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
.clear_cursor:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov edx,ed_color
|
|
|
|
|
test word ed_flags,ed_shift
|
|
|
|
|
je @f
|
|
|
|
|
mov edx,shift_color
|
|
|
|
|
@@:
|
|
|
|
|
mov ebx,cl_curs_x
|
|
|
|
|
mov ecx,cl_curs_y
|
|
|
|
|
jmp .draw_curs
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.draw_cursor:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
|
|
|
|
|
mov edx,ed_text_color
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov ebx,ed_pos
|
|
|
|
|
mov ecx,ed_offset
|
|
|
|
|
sub ebx,ecx
|
|
|
|
|
|
|
|
|
|
lea ebx,[ebx*2+ebx]
|
|
|
|
|
shl ebx,1
|
|
|
|
|
;imul ebx,6
|
|
|
|
|
add bx,ed_left
|
|
|
|
|
mov ecx,ed_top
|
|
|
|
|
inc ebx
|
|
|
|
|
add ecx,2
|
|
|
|
|
mov ebp,ebx
|
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,bp
|
|
|
|
|
mov ebp,ecx
|
|
|
|
|
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx,bp
|
|
|
|
|
add cx,ed_height-4
|
|
|
|
|
|
|
|
|
|
mov cl_curs_x,ebx
|
|
|
|
|
mov cl_curs_y,ecx
|
|
|
|
|
.draw_curs:
|
|
|
|
|
mov eax,38
|
|
|
|
|
int 0x40
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>楤<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠬ<EFBFBD><EFBFBD> ----------------------------
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
.draw_border:
|
|
|
|
|
;--- 梥<EFBFBD> ࠬ<EFBFBD><EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
test dword ed_flags,ed_focus
|
|
|
|
|
mov edx,ed_focus_border_color
|
|
|
|
|
jne @f
|
|
|
|
|
mov edx,ed_blur_border_color
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
|
|
|
|
;--- ᢥ<EFBFBD><EFBFBD><EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov eax,38
|
|
|
|
|
mov ebx,ed_left
|
|
|
|
|
mov ecx,ebx
|
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,cx
|
|
|
|
|
add bx,ed_width
|
|
|
|
|
mov ecx, ed_top
|
|
|
|
|
mov esi,ecx
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx,si
|
|
|
|
|
int 0x40
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
;--- ᭨<EFBFBD><EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov esi,ecx
|
|
|
|
|
add ecx,ed_height
|
|
|
|
|
mov ebp,ecx
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx,bp
|
|
|
|
|
int 0x40
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
;--- <EFBFBD><EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov cx,si
|
|
|
|
|
mov ebp,ebx
|
|
|
|
|
sub bx,ed_width
|
|
|
|
|
int 0x40
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
;--- <EFBFBD><EFBFBD>ࠢ<EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov ebx,ebp
|
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,bp
|
|
|
|
|
int 0x40
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <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> ------------------------------------
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;--- eax = -1, <EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> eax = 0, <EFBFBD>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
.check_offset:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
pushad
|
|
|
|
|
mov ecx,ed_pos
|
|
|
|
|
mov ebx,ed_offset
|
|
|
|
|
cmp ebx,ecx
|
|
|
|
|
ja .sub_8
|
|
|
|
|
|
|
|
|
|
push ebx
|
|
|
|
|
call .get_n ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>稬 <EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD> ᨬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ॣ<EFBFBD><EFBFBD><EFBFBD> edx:eax
|
|
|
|
|
pop ebx
|
|
|
|
|
mov edx,ebx
|
|
|
|
|
add edx,eax ;ed_offset+width editbox
|
|
|
|
|
cmp edx,ecx
|
|
|
|
|
ja @f
|
|
|
|
|
|
|
|
|
|
mov edx,ed_size
|
|
|
|
|
cmp edx,ecx
|
|
|
|
|
je .add_end
|
|
|
|
|
|
|
|
|
|
sub edx,ecx
|
|
|
|
|
cmp edx,8
|
|
|
|
|
jbe .add_8
|
|
|
|
|
add ebx,8
|
|
|
|
|
jmp .chk_d
|
|
|
|
|
|
|
|
|
|
.sub_8: cmp ecx,0
|
|
|
|
|
je .sub_min
|
|
|
|
|
cmp ebx,8
|
|
|
|
|
jbe .sub_min
|
|
|
|
|
sub ebx,8 ;ebx=ed_offset
|
|
|
|
|
jmp .chk_d
|
|
|
|
|
.sub_min:
|
|
|
|
|
xor ebx,ebx
|
|
|
|
|
jmp .chk_d
|
|
|
|
|
|
|
|
|
|
.add_end:sub edx,eax
|
|
|
|
|
mov ebx,edx
|
|
|
|
|
jmp .chk_d
|
|
|
|
|
.add_8: add ebx,edx
|
|
|
|
|
|
|
|
|
|
; ;----------- <EFBFBD>⫠<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
; pushad
|
|
|
|
|
; mov [data_of_code],0
|
|
|
|
|
; mov eax,ebx;ed_offset
|
|
|
|
|
; mov edi,data_of_code
|
|
|
|
|
; call .str
|
|
|
|
|
; ;<EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䮭<EFBFBD>
|
|
|
|
|
; mov eax,13
|
|
|
|
|
; mov ebx,178*65536+36
|
|
|
|
|
; mov ecx,28*65536+10
|
|
|
|
|
; xor edx,edx
|
|
|
|
|
; int 0x40
|
|
|
|
|
; ;<EFBFBD>뢮<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>࠭
|
|
|
|
|
; mov eax,4
|
|
|
|
|
; mov ebx,180*65536+30
|
|
|
|
|
; mov ecx,0x10DDBBCC
|
|
|
|
|
; mov edx,data_of_code
|
|
|
|
|
; mov esi,4
|
|
|
|
|
; int 0x40
|
|
|
|
|
; popad
|
|
|
|
|
; ;----------- <EFBFBD>⫠<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
.chk_d: mov ed_offset,ebx
|
|
|
|
|
|
|
|
|
|
call .draw_bg
|
|
|
|
|
mov dword [esp+28],-1
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov dword [esp+28],0
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
; mov ebx,eax
|
|
|
|
|
; mov eax,ed_pos
|
|
|
|
|
; xor edx,edx
|
|
|
|
|
; idiv ebx
|
|
|
|
|
; xor edx,edx
|
|
|
|
|
; imul eax,ebx
|
|
|
|
|
; mov ed_offset,eax
|
|
|
|
|
; pop ebx
|
|
|
|
|
; cmp ax,bx
|
|
|
|
|
; 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> <EFBFBD><EFBFBD>אַ㣮<EFBFBD>쭨<EFBFBD><EFBFBD>
|
|
|
|
|
; mov ebx,ed_left
|
|
|
|
|
; inc ebx
|
|
|
|
|
; shl ebx,16
|
|
|
|
|
; mov bx,ed_width
|
|
|
|
|
; dec ebx
|
|
|
|
|
; mov edx,ed_color
|
|
|
|
|
; call .draw_bg_eax
|
|
|
|
|
; mov dword [esp+28],0
|
|
|
|
|
;@@: popad
|
|
|
|
|
; ret
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;==========================================================
|
|
|
|
|
;=== <EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =================================
|
|
|
|
|
;==========================================================
|
|
|
|
|
.key:
|
|
|
|
|
pusha
|
2007-02-01 12:46:48 +03:00
|
|
|
|
test word ed_flags,ed_focus ; <EFBFBD> <EFBFBD><EFBFBD> <EFBFBD> 䮪<EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD>室<EFBFBD><EFBFBD>
|
|
|
|
|
je .no_figure ;@f
|
|
|
|
|
|
|
|
|
|
xor ecx,ecx
|
|
|
|
|
push eax
|
|
|
|
|
inc ecx
|
|
|
|
|
mov eax,66
|
|
|
|
|
mov ebx,3
|
|
|
|
|
int 0x40
|
|
|
|
|
test al,0x03
|
|
|
|
|
je @f
|
|
|
|
|
or word ed_flags,ed_shift
|
|
|
|
|
|
|
|
|
|
@@: pop eax
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>塞, <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> --------------------------------
|
|
|
|
|
;----------------------------------------------------------
|
2007-02-01 12:46:48 +03:00
|
|
|
|
cmp ah,8
|
|
|
|
|
jz .backspace
|
2006-11-02 17:18:23 +03:00
|
|
|
|
cmp ah,0xb6
|
2007-02-01 12:46:48 +03:00
|
|
|
|
jz .delete
|
|
|
|
|
cmp ah,176
|
|
|
|
|
jz .left
|
|
|
|
|
cmp ah,179
|
|
|
|
|
jz .right
|
|
|
|
|
cmp ah,180
|
|
|
|
|
jz .home
|
|
|
|
|
cmp ah,181
|
|
|
|
|
jz .end
|
|
|
|
|
cmp ah,185 ;insert
|
|
|
|
|
jz .insert
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<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 ah,177
|
|
|
|
|
jz .no_figure
|
|
|
|
|
cmp ah,178
|
|
|
|
|
jz .no_figure
|
|
|
|
|
cmp ah,27 ;ESC - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ))
|
|
|
|
|
jz .no_figure
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>㣠<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
test word ed_flags,ed_figure_only ; ⮫쪮 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ?
|
|
|
|
|
jz @f
|
|
|
|
|
cmp ah,'0'
|
|
|
|
|
jb .no_figure
|
|
|
|
|
cmp ah,'9'
|
|
|
|
|
ja .no_figure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD>ઠ <EFBFBD><EFBFBD> shift
|
|
|
|
|
@@: test word ed_flags,ed_shift_on
|
|
|
|
|
je @f
|
|
|
|
|
;<EFBFBD>室<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> edx=ed_size;ecx=ed_pos
|
|
|
|
|
push eax
|
|
|
|
|
mov edx,ed_size
|
|
|
|
|
mov ecx,ed_pos
|
|
|
|
|
call .del_char
|
|
|
|
|
;;;;
|
|
|
|
|
mov eax,ed_shift_pos
|
|
|
|
|
mov ebx,ed_size
|
|
|
|
|
sub ebx,eax
|
|
|
|
|
mov ed_size,ebx
|
|
|
|
|
pop eax
|
|
|
|
|
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD>塞, <EFBFBD><EFBFBD>室<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
@@: mov ecx,ed_size
|
|
|
|
|
mov edx, ed_max
|
|
|
|
|
cmp ecx,edx
|
|
|
|
|
jae .no_figure
|
|
|
|
|
mov ebx, ed_pos
|
|
|
|
|
cmp ebx,edx
|
|
|
|
|
jl @f ; <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> ࠢ<EFBFBD><EFBFBD>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.no_figure:
|
|
|
|
|
popa
|
|
|
|
|
ret
|
2007-02-01 12:46:48 +03:00
|
|
|
|
.insert: test word ed_flags,ed_insert ;not word ed_insert
|
|
|
|
|
je .insert_1
|
|
|
|
|
and word ed_flags,ed_insert_cl
|
|
|
|
|
jmp .no_figure
|
|
|
|
|
.insert_1:
|
|
|
|
|
or word ed_flags,ed_insert
|
|
|
|
|
jmp .no_figure
|
|
|
|
|
.ins_v:
|
|
|
|
|
dec dword [ebp+38];ed_size ;processing is insert
|
|
|
|
|
sub esi,ecx
|
|
|
|
|
add esi,ebx
|
|
|
|
|
mov edi,esi
|
|
|
|
|
jmp .In_k
|
|
|
|
|
@@: ; ᤢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ࠢ<EFBFBD>
|
|
|
|
|
mov ecx,ed_size
|
|
|
|
|
push edi eax
|
|
|
|
|
mov ebp,edi
|
|
|
|
|
mov esi,ed_text ; <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>
|
|
|
|
|
add esi,ecx ;add ed_size <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> max size
|
|
|
|
|
mov edi,esi
|
|
|
|
|
|
|
|
|
|
cmp ecx,ebx ;<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><EFBFBD> <EFBFBD>.<EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>⮨<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
je .In_k
|
|
|
|
|
|
|
|
|
|
test word [ebp+36],ed_insert ;IF insert is enable <EFBFBD>.<EFBFBD>. edi <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㥬 <EFBFBD><EFBFBD>१ ebp
|
|
|
|
|
jne .ins_v
|
|
|
|
|
|
|
|
|
|
sub ecx,ebx ;<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>.
|
|
|
|
|
inc edi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨬ <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD>ࠢ<EFBFBD>
|
|
|
|
|
std
|
|
|
|
|
inc ecx
|
|
|
|
|
@@:
|
|
|
|
|
;--------
|
|
|
|
|
lodsb
|
|
|
|
|
stosb
|
|
|
|
|
;--------
|
|
|
|
|
loop @b
|
|
|
|
|
.In_k: cld
|
|
|
|
|
pop eax
|
|
|
|
|
mov al,ah
|
|
|
|
|
stosb
|
|
|
|
|
pop 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> ࠧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>樨
|
|
|
|
|
inc dword ed_size
|
|
|
|
|
inc dword ed_pos
|
|
|
|
|
call .draw_all2
|
|
|
|
|
jmp .shift;.draw_cursor_text
|
|
|
|
|
.delete:
|
|
|
|
|
mov edx,ed_size
|
|
|
|
|
mov ecx,ed_pos
|
|
|
|
|
cmp edx,ecx
|
|
|
|
|
jg .bac_del
|
|
|
|
|
test word ed_flags,ed_shift_on
|
|
|
|
|
jne .del_bac
|
|
|
|
|
popa
|
|
|
|
|
ret
|
|
|
|
|
.bac_del:
|
|
|
|
|
call .del_char
|
|
|
|
|
jmp .draw_all
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> backspace ---
|
|
|
|
|
.backspace:
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD>塞, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ?
|
|
|
|
|
mov edx,ed_size
|
|
|
|
|
mov ecx,ed_pos
|
|
|
|
|
test ecx,ecx
|
|
|
|
|
jnz .del_bac
|
|
|
|
|
test word ed_flags,ed_shift_on
|
|
|
|
|
jne .bac_del
|
|
|
|
|
popa
|
|
|
|
|
ret
|
|
|
|
|
.del_bac:
|
|
|
|
|
cmp edx,ecx ;if ed_pos=ed_size
|
|
|
|
|
je @f
|
|
|
|
|
dec ecx
|
|
|
|
|
call .del_char
|
|
|
|
|
@@: test word ed_flags,ed_shift_on
|
|
|
|
|
jne .bac_del
|
|
|
|
|
dec dword ed_pos
|
|
|
|
|
|
|
|
|
|
.draw_all:
|
|
|
|
|
push .shift;.draw_cursor_text;eax
|
|
|
|
|
|
|
|
|
|
test word ed_flags,ed_shift_on
|
|
|
|
|
je @f
|
|
|
|
|
mov eax,ed_shift_pos
|
|
|
|
|
mov ebx,ed_size
|
|
|
|
|
sub ebx,eax
|
|
|
|
|
mov ed_size,ebx
|
|
|
|
|
jmp .draw_all2
|
|
|
|
|
|
|
|
|
|
@@: dec dword ed_size
|
|
|
|
|
|
|
|
|
|
.draw_all2:
|
|
|
|
|
and word ed_flags,ed_shift_cl
|
|
|
|
|
call .clear_cursor
|
2006-11-02 17:18:23 +03:00
|
|
|
|
call .check_offset
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;;;;;;;;;;;;;;;
|
2006-11-02 17:18:23 +03:00
|
|
|
|
test eax,eax
|
2007-02-01 12:46:48 +03:00
|
|
|
|
jne @f
|
|
|
|
|
call .draw_bg
|
|
|
|
|
ret
|
|
|
|
|
;;;;;;;;;;;;;;;
|
|
|
|
|
@@: call .get_n
|
|
|
|
|
push eax
|
|
|
|
|
mov ebx,ed_offset
|
|
|
|
|
add eax,ebx ;eax = w_off= ed_offset+width
|
|
|
|
|
mov ebx,ed_size
|
|
|
|
|
|
|
|
|
|
cmp eax,ebx
|
|
|
|
|
jb @f
|
|
|
|
|
mov eax,ed_pos
|
|
|
|
|
sub ebx,eax
|
|
|
|
|
mov ecx,ed_offset
|
|
|
|
|
sub eax,ecx
|
|
|
|
|
jmp .nxt
|
|
|
|
|
@@: mov ebx,ed_pos
|
|
|
|
|
push ebx
|
|
|
|
|
sub eax,ebx
|
|
|
|
|
mov ebx,eax ;It is don't optimal
|
|
|
|
|
|
|
|
|
|
pop eax ;ed_pos
|
|
|
|
|
mov ecx,ed_offset
|
|
|
|
|
sub eax,ecx
|
|
|
|
|
|
|
|
|
|
.nxt:
|
|
|
|
|
mov ebp,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>।<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
add ebp,ebx
|
|
|
|
|
pop edx
|
|
|
|
|
cmp ebp,edx
|
|
|
|
|
je @f
|
|
|
|
|
inc ebx
|
|
|
|
|
|
|
|
|
|
@@: mov edx,ebx
|
|
|
|
|
lea ebx,[eax*2+eax]
|
|
|
|
|
shl ebx,1
|
|
|
|
|
add ebx,ed_left
|
|
|
|
|
inc ebx
|
|
|
|
|
shl ebx,16
|
|
|
|
|
lea ecx,[edx*2+edx]
|
|
|
|
|
shl ecx,1
|
|
|
|
|
mov bx,cx
|
|
|
|
|
mov edx,ed_color
|
2006-11-02 17:18:23 +03:00
|
|
|
|
call .draw_bg_eax
|
2007-02-01 12:46:48 +03:00
|
|
|
|
ret
|
|
|
|
|
; jmp .shift
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> left ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
.left: call .sh_enable
|
|
|
|
|
mov ebx,ed_pos
|
|
|
|
|
test ebx,ebx
|
|
|
|
|
jz .nd_k
|
|
|
|
|
call .clear_cursor
|
|
|
|
|
dec dword ed_pos
|
|
|
|
|
jmp .nd_k
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> right ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
.right: call .sh_enable
|
|
|
|
|
mov ebx,ed_pos
|
|
|
|
|
cmp ebx,ed_size
|
|
|
|
|
je .nd_k
|
|
|
|
|
call .clear_cursor
|
|
|
|
|
inc dword ed_pos
|
|
|
|
|
jmp .nd_k
|
|
|
|
|
.home: call .sh_enable
|
|
|
|
|
mov ebx,ed_pos
|
|
|
|
|
test ebx,ebx
|
|
|
|
|
jz .nd_k
|
|
|
|
|
call .clear_cursor
|
|
|
|
|
xor eax,eax
|
|
|
|
|
mov ed_pos,eax
|
|
|
|
|
jmp .nd_k
|
|
|
|
|
|
|
|
|
|
.end: call .sh_enable
|
|
|
|
|
mov ebx,ed_pos
|
|
|
|
|
cmp ebx,dword ed_size
|
|
|
|
|
je .nd_k
|
|
|
|
|
call .clear_cursor
|
|
|
|
|
mov eax,ed_size
|
|
|
|
|
mov ed_pos,eax
|
|
|
|
|
.nd_k: call .check_offset
|
|
|
|
|
;test eax,eax
|
|
|
|
|
;jz .draw_bg_cursor_text
|
|
|
|
|
call .draw_cursor
|
|
|
|
|
|
|
|
|
|
.shift: ;;;;;;;SHIFT
|
|
|
|
|
|
|
|
|
|
call .draw_bg ;<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⨬<EFBFBD><EFBFBD>쭮
|
|
|
|
|
test word ed_flags,ed_shift
|
|
|
|
|
je .f_exit
|
|
|
|
|
;;;;;;SHIFT end
|
|
|
|
|
mov eax,dword ed_pos
|
|
|
|
|
mov ebx,dword ed_shift_pos
|
|
|
|
|
cmp eax,ebx
|
|
|
|
|
jae .sh_n
|
|
|
|
|
push eax ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>襥 <EFBFBD> eax
|
|
|
|
|
push ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>襥
|
|
|
|
|
jmp .sh_n1
|
|
|
|
|
;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.sh_n: push ebx
|
|
|
|
|
push eax
|
|
|
|
|
.sh_n1:
|
|
|
|
|
; jmp .draw_all2
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;call .clear_cursor
|
|
|
|
|
call .check_offset
|
|
|
|
|
call .get_n
|
|
|
|
|
mov edx,eax ;size of ed_box
|
|
|
|
|
; push eax
|
|
|
|
|
mov ecx,ed_offset
|
|
|
|
|
add eax,ecx ;eax = w_off= ed_offset+width
|
|
|
|
|
mov ebp,eax ;save
|
|
|
|
|
pop ebx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>襥
|
|
|
|
|
pop eax ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>襥
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cmp eax,ecx ;<EFBFBD>ࠢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>襣<EFBFBD> <EFBFBD> offset.
|
|
|
|
|
jae .f_f ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
xor eax,eax
|
|
|
|
|
cmp ebp,ebx ;cࠢ<EFBFBD><EFBFBD><EFBFBD> ࠧ<EFBFBD><EFBFBD><EFBFBD> w_off <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>訬
|
|
|
|
|
jb @f
|
|
|
|
|
sub ebx,ecx
|
|
|
|
|
jmp .nxt_f
|
|
|
|
|
@@: mov ebx,ebp
|
|
|
|
|
sub ebx,ecx
|
|
|
|
|
jmp .nxt_f
|
|
|
|
|
|
|
|
|
|
.f_f:
|
|
|
|
|
sub eax,ecx
|
|
|
|
|
cmp ebp,ebx ;cࠢ<EFBFBD><EFBFBD><EFBFBD> ࠧ<EFBFBD><EFBFBD><EFBFBD> w_off <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>訬
|
|
|
|
|
jle @f
|
|
|
|
|
sub ebx,ecx
|
|
|
|
|
sub ebx,eax
|
|
|
|
|
jmp .nxt_f
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov ebx,ebp
|
|
|
|
|
sub ebx,ecx
|
|
|
|
|
sub ebx,eax
|
|
|
|
|
.nxt_f:
|
|
|
|
|
mov edx,ebx
|
|
|
|
|
lea ebx,[eax*2+eax]
|
|
|
|
|
shl ebx,1
|
|
|
|
|
add ebx,ed_left
|
|
|
|
|
inc ebx
|
|
|
|
|
shl ebx,16
|
|
|
|
|
lea ecx,[edx*2+edx]
|
|
|
|
|
shl ecx,1
|
|
|
|
|
mov bx,cx
|
|
|
|
|
mov edx,shift_color
|
|
|
|
|
call .draw_bg_eax
|
|
|
|
|
and word ed_flags,1111111111111011b
|
|
|
|
|
jmp .draw_cursor_text
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
|
|
.f_exit: and word ed_flags,ed_shift_cl
|
|
|
|
|
jmp .draw_cursor_text
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD>ઠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD> shift <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠭<EFBFBD><EFBFBD><EFBFBD>?
|
|
|
|
|
.sh_enable:
|
|
|
|
|
test word ed_flags,ed_shift
|
|
|
|
|
je @f
|
|
|
|
|
test word ed_flags,ed_shift_on
|
|
|
|
|
jne .sh_ext_en
|
|
|
|
|
push dword ed_pos
|
|
|
|
|
pop dword ed_shift_pos
|
|
|
|
|
or word ed_flags,ed_shift_on
|
|
|
|
|
ret
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
@@: and word ed_flags,ed_shift_cl
|
|
|
|
|
.sh_ext_en: ret
|
|
|
|
|
|
|
|
|
|
;- 㤠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;<EFBFBD>室<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> edx=ed_size;ecx=ed_pos
|
|
|
|
|
.del_char:
|
|
|
|
|
mov esi,ed_text
|
|
|
|
|
test word ed_flags,ed_shift_on
|
|
|
|
|
je @f
|
|
|
|
|
mov eax,dword ed_shift_pos
|
|
|
|
|
mov ebx,esi
|
|
|
|
|
cmp eax,ecx
|
|
|
|
|
jae .dh_n
|
|
|
|
|
|
|
|
|
|
mov ed_pos,eax ;<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>뫮 㡥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov ebp,ecx
|
|
|
|
|
sub ebp,eax
|
|
|
|
|
add ebx,eax ;eax <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
sub edx,ecx
|
|
|
|
|
add esi,ecx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mov ed_shift_pos,ebp
|
|
|
|
|
jmp .del_ch_sh
|
|
|
|
|
;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.dh_n:
|
|
|
|
|
mov ebp,eax
|
|
|
|
|
sub ebp,ecx
|
|
|
|
|
add ebx,ecx
|
|
|
|
|
sub edx,eax
|
|
|
|
|
add esi,eax
|
|
|
|
|
mov ed_shift_pos,ebp
|
|
|
|
|
jmp .del_ch_sh
|
|
|
|
|
|
|
|
|
|
@@: add esi,ecx ;㪠<EFBFBD><EFBFBD>⥫<EFBFBD> + ᬥ饭<EFBFBD><EFBFBD> <EFBFBD> ॠ<EFBFBD>쭮<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov ebx,esi
|
|
|
|
|
inc esi
|
|
|
|
|
cld
|
|
|
|
|
|
|
|
|
|
sub edx,ecx
|
|
|
|
|
.del_ch_sh:
|
|
|
|
|
|
|
|
|
|
push edi
|
|
|
|
|
mov edi,ebx
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
lodsb
|
|
|
|
|
stosb
|
|
|
|
|
dec edx
|
|
|
|
|
jns @b
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
pop edi
|
|
|
|
|
ret
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;==========================================================
|
|
|
|
|
;=== <EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD> =======================================
|
|
|
|
|
;==========================================================
|
|
|
|
|
.mouse:
|
|
|
|
|
pusha
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> -----------------------
|
|
|
|
|
;----------------------------------------------------------
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov eax,37
|
|
|
|
|
mov ebx,2
|
|
|
|
|
int 0x40
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD> ----------------------------------
|
|
|
|
|
;----------------------------------------------------------
|
2007-02-01 12:46:48 +03:00
|
|
|
|
test eax,1
|
|
|
|
|
jnz .mouse_left_button
|
|
|
|
|
@@: popa
|
|
|
|
|
ret
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
.mouse_left_button:
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>न<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> -----------------------------
|
|
|
|
|
;----------------------------------------------------------
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov eax,37
|
|
|
|
|
xor ebx,ebx
|
|
|
|
|
inc ebx
|
|
|
|
|
int 0x40
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>塞, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> edit box -------------
|
|
|
|
|
;----------------------------------------------------------
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov ebx,ed_top
|
|
|
|
|
cmp ax,bx
|
|
|
|
|
jl ._blur;.mouse_end_no_focus
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
add bx,ed_height
|
|
|
|
|
cmp ax,bx
|
|
|
|
|
jg ._blur;.mouse_end_no_focus
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
shr eax,16
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov bx,ed_left
|
|
|
|
|
cmp ax,bx
|
|
|
|
|
jl ._blur;.mouse_end_no_focus
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
add bx,ed_width
|
|
|
|
|
cmp ax,bx
|
|
|
|
|
jg ._blur;.mouse_end_no_focus
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-02-01 12:46:48 +03:00
|
|
|
|
push eax
|
|
|
|
|
call .clear_cursor
|
|
|
|
|
pop eax
|
|
|
|
|
xor dx,dx
|
|
|
|
|
sub ax,ed_left
|
|
|
|
|
add ax,2
|
|
|
|
|
mov bx,6
|
|
|
|
|
div bx
|
|
|
|
|
add ax,ed_offset
|
|
|
|
|
cmp ax,ed_size
|
|
|
|
|
jna @f
|
|
|
|
|
mov ax,ed_size
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov ed_pos,ax
|
|
|
|
|
call .check_offset
|
|
|
|
|
call .draw_cursor
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>楤<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䮪<EFBFBD><EFBFBD><EFBFBD> ---------------------------
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
bts word ed_flags,1
|
|
|
|
|
jc .mouse_pressed
|
|
|
|
|
call .draw_cursor
|
|
|
|
|
call .draw_border
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.mouse_pressed:
|
|
|
|
|
popa
|
|
|
|
|
ret
|
|
|
|
|
;.mouse_end_no_focus:
|
|
|
|
|
; call .blur
|
|
|
|
|
;popa
|
|
|
|
|
;ret
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;.blur:
|
|
|
|
|
;pusha
|
2006-11-02 17:18:23 +03:00
|
|
|
|
._blur:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
test word ed_flags,ed_always_focus
|
|
|
|
|
jne @f
|
|
|
|
|
btr word ed_flags,1 ; <EFBFBD> <EFBFBD><EFBFBD> <EFBFBD> 䮪<EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD>室<EFBFBD><EFBFBD>
|
|
|
|
|
jnc @f
|
|
|
|
|
call .clear_cursor
|
|
|
|
|
call .draw_border
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
|
|
|
|
popa
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>楤<EFBFBD><EFBFBD><EFBFBD> ࠧ<EFBFBD>뢠<EFBFBD><EFBFBD><EFBFBD> 䮪<EFBFBD><EFBFBD><EFBFBD> --------------------------
|
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;.blur:
|
|
|
|
|
;pusha
|
|
|
|
|
;._blur:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;btr ed_flags,1
|
|
|
|
|
;jnc @f
|
|
|
|
|
;call .draw_border
|
|
|
|
|
;call .clear_cursor
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;@@:
|
|
|
|
|
;popa
|
|
|
|
|
;ret
|
|
|
|
|
}
|
|
|
|
|
ed_figure_only=1000000000000000b
|
|
|
|
|
ed_always_focus=100000000000000b
|
|
|
|
|
ed_focus=10b
|
2007-02-01 12:46:48 +03:00
|
|
|
|
ed_shift_on=1000b
|
|
|
|
|
ed_shift=100b
|
|
|
|
|
ed_shift_cl=1111111111110011b
|
2006-11-02 17:18:23 +03:00
|
|
|
|
macro draw_edit_boxes start,end
|
|
|
|
|
{
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov edi,start
|
|
|
|
|
mov ecx,((end-start)/ed_struc_size)
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
call edit_box.draw
|
|
|
|
|
add edi,ed_struc_size
|
|
|
|
|
loop @b
|
2006-11-02 17:18:23 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro mouse_edit_boxes start,end
|
|
|
|
|
{
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov edi,start
|
|
|
|
|
mov ecx,((end-start)/ed_struc_size)
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
call edit_box.mouse
|
|
|
|
|
add edi,ed_struc_size
|
|
|
|
|
loop @b
|
2006-11-02 17:18:23 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro key_edit_boxes start,end
|
|
|
|
|
{
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov edi,start
|
|
|
|
|
mov ecx,((end-start)/ed_struc_size)
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
call edit_box.key
|
|
|
|
|
add edi,ed_struc_size
|
|
|
|
|
loop @b
|
2006-11-02 17:18:23 +03:00
|
|
|
|
}
|
2007-02-01 12:46:48 +03:00
|
|
|
|
ed_struc_size=62
|
2006-11-02 17:18:23 +03:00
|
|
|
|
struc edit_box width,left,top,color,focus_border_color,\
|
|
|
|
|
blur_border_color,text_color,max,text,flags,size
|
|
|
|
|
{
|
2007-02-01 12:46:48 +03:00
|
|
|
|
.width dd width
|
|
|
|
|
.left dd left
|
|
|
|
|
.top dd top
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.color dd color
|
|
|
|
|
.focus_border_color dd focus_border_color
|
|
|
|
|
.blur_border_color dd blur_border_color
|
|
|
|
|
.text_color dd text_color
|
2007-02-01 12:46:48 +03:00
|
|
|
|
.max dd max
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.text dd text
|
2007-02-01 12:46:48 +03:00
|
|
|
|
.flags dw flags+0
|
|
|
|
|
.size dd size+0
|
|
|
|
|
.pos dd 0
|
|
|
|
|
.offset dd 0
|
|
|
|
|
.cl_curs_x dd 0
|
|
|
|
|
.cl_curs_y dd 0
|
|
|
|
|
.shift dd 0
|
2006-11-02 17:18:23 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro edit_boxes_set_sys_color start,end,color_table
|
|
|
|
|
{
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov edi,start
|
|
|
|
|
mov ecx,((end-start)/ed_struc_size)
|
|
|
|
|
mov esi,color_table
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov eax,[esi+36]
|
|
|
|
|
mov ebx,[esi+20]
|
|
|
|
|
mov ed_focus_border_color,eax
|
|
|
|
|
shr bh,1
|
|
|
|
|
shr bl,1
|
|
|
|
|
shr ah,1
|
|
|
|
|
shr al,1
|
|
|
|
|
add ah,bh
|
|
|
|
|
add al,bl
|
|
|
|
|
ror eax,16
|
|
|
|
|
ror ebx,16
|
|
|
|
|
shr bl,1
|
|
|
|
|
shr al,1
|
|
|
|
|
add al,bl
|
|
|
|
|
ror eax,16
|
|
|
|
|
mov ed_blur_border_color,eax
|
|
|
|
|
add edi,ed_struc_size
|
|
|
|
|
loop @b
|
2006-11-02 17:18:23 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro draw_edit_box ed_ptr
|
|
|
|
|
{
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov edi,ed_ptr
|
|
|
|
|
call edit_box.draw
|
2006-11-02 17:18:23 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro mouse_edit_box ed_ptr
|
|
|
|
|
{
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov edi,ed_ptr
|
|
|
|
|
call edit_box.mouse
|
2006-11-02 17:18:23 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro key_edit_box ed_ptr
|
|
|
|
|
{
|
2007-02-01 12:46:48 +03:00
|
|
|
|
mov edi,ed_ptr
|
|
|
|
|
call edit_box.key
|
2006-11-02 17:18:23 +03:00
|
|
|
|
}
|