Subversion Repositories Kolibri OS

Rev

Rev 4376 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4376 Rev 4380
Line 65... Line 65...
65
        call    [con_init]
65
        call    [con_init]
Line 66... Line 66...
66
 
66
 
67
        push    str0
67
        push    str0
Line -... Line 68...
-
 
68
        call    [con_write_asciiz]
-
 
69
 
68
        call    [con_write_asciiz]
70
restart:
69
 
71
 
70
        invoke  ini.get_str, path, str_remote, str_ip, buffer_ptr, 16, 0
72
        invoke  ini.get_str, path, str_remote, str_ip, buffer_ptr, 16, 0
Line 71... Line 73...
71
        test    eax, eax
73
        test    eax, eax
Line 104... Line 106...
104
        mov     eax, [esi+addrinfo.ai_addr]
106
        mov     eax, [esi+addrinfo.ai_addr]
105
        mov     eax, [eax+sockaddr_in.sin_addr]
107
        mov     eax, [eax+sockaddr_in.sin_addr]
106
        mov     [sockaddr1.ip], eax
108
        mov     [sockaddr1.ip], eax
Line 107... Line 109...
107
 
109
 
-
 
110
        mcall   connect, [socketnum], sockaddr1, 18
-
 
111
        test    eax, eax
Line 108... Line 112...
108
        mcall   connect, [socketnum], sockaddr1, 18
112
        jnz     error
109
 
113
 
Line 110... Line 114...
110
        push    str7
114
        push    str7
111
        call    [con_write_asciiz]
-
 
Line 112... Line 115...
112
 
115
        call    [con_write_asciiz]
113
        mcall   40, EVM_STACK
116
 
Line 114... Line 117...
114
        mcall   10
117
        mcall   40, EVM_STACK
Line 261... Line 264...
261
        call    [con_write_asciiz]
264
        call    [con_write_asciiz]
262
        jmp     .next
265
        jmp     .next
Line 263... Line 266...
263
 
266
 
264
  .dmdn:
267
  .dmdn:
-
 
268
        movzx   eax, byte[edi + 8]
-
 
269
        cmp     eax, 5
-
 
270
        ja      .next
265
        movzx   eax, byte [edi + 8]
271
        movzx   eax, [mousecodes + eax]
266
        or      [mousestate], eax
272
        or      [mousestate], eax
267
        mcall   18, 19, 5, [mousestate]
273
        mcall   18, 19, 5, [mousestate]
268
        mcall   send, [socketnum], cnop, cnop.length, 0     ; reply with NOP
274
        mcall   send, [socketnum], cnop, cnop.length, 0     ; reply with NOP
Line 269... Line 275...
269
        jmp     .next
275
        jmp     .next
270
 
276
 
-
 
277
  .dmup:
-
 
278
        movzx   eax, byte[edi + 8]
-
 
279
        cmp     eax, 5
271
  .dmup:
280
        ja      .next
272
        movzx   eax, byte [edi + 8]
281
        movzx   eax, [mousecodes + eax]
273
        not     eax
282
        not     eax
274
        and     [mousestate], eax
283
        and     [mousestate], eax
275
        mcall   18, 19, 5, [mousestate]
284
        mcall   18, 19, 5, [mousestate]
Line 333... Line 342...
333
closed:
342
closed:
Line 334... Line 343...
334
 
343
 
335
        push    str_cls
344
        push    str_cls
Line -... Line 345...
-
 
345
        call    [con_write_asciiz]
-
 
346
 
-
 
347
        mcall   close, [socketnum]
-
 
348
 
336
        call    [con_write_asciiz]
349
        mcall   5, 200
Line 337... Line 350...
337
 
350
 
338
        jmp     wait_for_key
351
        jmp     restart
Line 375... Line 388...
375
cnop:
388
cnop:
376
        dd (4) shl 24
389
        dd (4) shl 24
377
        db 'CNOP'
390
        db 'CNOP'
378
  .length = $ - cnop
391
  .length = $ - cnop
Line -... Line 392...
-
 
392
 
379
 
393
mousecodes      db 0, 1b, 100b, 10b, 1000b, 10000b
Line 380... Line 394...
380
mousestate      dd 0
394
mousestate      dd 0
381
 
395
 
Line 420... Line 434...
420
 
434
 
421
align   4
435
align   4
422
i_end:
436
i_end:
423
socketnum       dd ?
437
socketnum       dd ?
424
buffer_ptr      rb BUFFERSIZE
438
buffer_ptr      rb BUFFERSIZE
425
path            rb 4096    ; stack
439
path            rb 4096
426
mem:
440
mem: