39,7 → 39,9 |
|
mcall SF_SYS_MISC,SSF_HEAP_INIT |
or eax,eax |
jz button.exit |
jnz @f |
call ted_Exit |
@@: |
|
mcall SF_KEYBOARD,SSF_SET_INPUT_MODE,1 ;scan code |
mcall SF_SET_EVENTS_MASK,0xC0000027 |
200,7 → 202,10 |
still: |
mcall SF_WAIT_EVENT |
cmp dword[exit_code],1 |
je button.exit |
jne @f |
call ted_Exit |
jmp still |
@@: |
|
cmp al,1 ;¨§¬¥¨«®áì ¯®«®¦¥¨¥ ®ª |
jz red_win |
210,7 → 215,7 |
jz button |
cmp al,6 ;¬ëèì |
jne @f |
jmp mouse |
call mouse |
@@: |
jmp still |
|
228,7 → 233,7 |
bt eax,24 ;¤¢®©®© 饫çñª «¥¢®© ª®¯ª®© |
jnc @f |
stdcall [ted_but_select_word], tedit0 |
jmp still |
ret |
@@: |
stdcall [ted_mouse], tedit0 |
.no_edit: |
241,7 → 246,7 |
jne @f |
stdcall [tl_mouse], tree1 |
@@: |
jmp still |
ret |
;--------------------------------------------------------------------- |
|
;output: |