Subversion Repositories Kolibri OS

Rev

Rev 3623 | Rev 3736 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3623 Rev 3704
Line 185... Line 185...
185
mouse:
185
mouse:
186
        stdcall [edit_box_mouse], edit1
186
        stdcall [edit_box_mouse], edit1
187
        jmp     still
187
        jmp     still
Line 188... Line 188...
188
 
188
 
-
 
189
exit:
189
exit:
190
        DEBUGF  1, "Exiting\n"
190
        or      eax, -1  ; close this program
191
        or      eax, -1 ; close this program
Line 191... Line 192...
191
        mcall
192
        mcall
Line 206... Line 207...
206
 
207
 
207
; if called from command line, then exit
208
; if called from command line, then exit
208
        cmp     byte[params], 0
209
        cmp     byte[params], 0
Line -... Line 210...
-
 
210
        jne     exit
-
 
211
 
-
 
212
        mov     ecx, [sc.work_text]
-
 
213
        or      ecx, 0x80000000
209
        jne     exit
214
        mcall   4, <10, 93>, , download_complete
Line 210... Line 215...
210
 
215
 
Line 211... Line 216...
211
        ret
216
        ret
Line 247... Line 252...
247
save_to_file:
252
save_to_file:
Line 248... Line 253...
248
 
253
 
249
        DEBUGF  2, "Saving to file\n"
254
        DEBUGF  2, "Saving to file\n"
Line 250... Line -...
250
        mcall   70, fileinfo
-
 
251
 
-
 
252
        mov     ecx, [sc.work_text]
-
 
253
        or      ecx, 0x80000000
-
 
254
        mcall   4, <10, 93>, , download_complete
255
        mcall   70, fileinfo
Line 255... Line 256...
255
 
256
 
256
        ret
257
        ret
Line 356... Line 357...
356
;****************************************************************************
357
;****************************************************************************
357
read_incoming_data:
358
read_incoming_data:
Line 358... Line 359...
358
 
359
 
Line 359... Line 360...
359
        DEBUGF  1, "Reading incoming data\n"
360
        DEBUGF  1, "Reading incoming data\n"
Line 360... Line 361...
360
 
361
 
361
        mcall   40, EVM_STACK   ; we only want stack events now
362
        mcall   40, EVM_STACK + EVM_BUTTON
Line 362... Line 363...
362
 
363
 
363
        mov     eax, [buf_ptr]
364
        mov     eax, [buf_ptr]
-
 
365
        mov     [pos], eax
-
 
366
 
364
        mov     [pos], eax
367
  .read:
365
 
368
        mcall   23, 100         ; 1 second timeout
366
  .read:
369
        cmp     eax, EV_BUTTON
367
        mcall   23, 100         ; 1 second timeout
370
        je      exit
368
  .read_dontwait:
371
  .read_dontwait:
369
        mcall   recv, [socketnum], [pos], BUFFERSIZE, 0
372
        mcall   recv, [socketnum], [pos], BUFFERSIZE, MSG_DONTWAIT