67,8 → 67,6 |
push str0 |
call [con_write_asciiz] |
|
restart: |
|
invoke ini.get_str, path, str_remote, str_ip, buffer_ptr, 16, 0 |
test eax, eax |
jnz error |
108,13 → 106,12 |
mov [sockaddr1.ip], eax |
|
mcall connect, [socketnum], sockaddr1, 18 |
test eax, eax |
jnz error |
|
push str7 |
call [con_write_asciiz] |
|
mcall 40, EVM_STACK |
mcall 10 |
|
login: |
call wait_for_data |
266,9 → 263,6 |
|
.dmdn: |
movzx eax, byte[edi + 8] |
cmp eax, 5 |
ja .next |
movzx eax, [mousecodes + eax] |
or [mousestate], eax |
mcall 18, 19, 5, [mousestate] |
mcall send, [socketnum], cnop, cnop.length, 0 ; reply with NOP |
276,9 → 270,6 |
|
.dmup: |
movzx eax, byte[edi + 8] |
cmp eax, 5 |
ja .next |
movzx eax, [mousecodes + eax] |
not eax |
and [mousestate], eax |
mcall 18, 19, 5, [mousestate] |
344,14 → 335,10 |
push str_cls |
call [con_write_asciiz] |
|
mcall close, [socketnum] |
jmp wait_for_key |
|
mcall 5, 200 |
|
jmp restart |
|
|
|
; data |
title db 'Synergy client',0 |
str0 db 'Welcome to the software KM switch for KolibriOS.',10,10,0 |
390,7 → 377,6 |
db 'CNOP' |
.length = $ - cnop |
|
mousecodes db 0, 1b, 100b, 10b, 1000b, 10000b |
mousestate dd 0 |
|
|
436,5 → 422,5 |
i_end: |
socketnum dd ? |
buffer_ptr rb BUFFERSIZE |
path rb 4096 |
path rb 4096 ; stack |
mem: |