Rev 3814 | Rev 3821 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3814 | Rev 3818 | ||
---|---|---|---|
Line 162... | Line 162... | ||
162 | mov [size], ecx |
162 | mov [size], ecx |
163 | jmp .go_cmd |
163 | jmp .go_cmd |
164 | .no_more_data: |
164 | .no_more_data: |
165 | mov [offset], 0 |
165 | mov [offset], 0 |
166 | .go_cmd: |
166 | .go_cmd: |
- | 167 | lea ecx, [edi - s] ; length of command |
|
167 | xor al, al |
168 | xor al, al |
168 | stosb |
169 | stosb |
Line 169... | Line 170... | ||
169 | 170 | ||
170 | invoke con_set_flags, 0x03 ; change color |
171 | invoke con_set_flags, 0x03 ; change color |
Line 290... | Line 291... | ||
290 | mov word[s+4], 0x0a0d |
291 | mov word[s+4], 0x0a0d |
291 | mcall send, [socketnum], s, 6, 0 |
292 | mcall send, [socketnum], s, 6, 0 |
292 | ret |
293 | ret |
Line 293... | Line 294... | ||
293 | 294 | ||
- | 295 | .fail: |
|
- | 296 | invoke con_get_flags |
|
- | 297 | push eax |
|
294 | .fail: |
298 | invoke con_set_flags, 0x0c ; print errors in red |
- | 299 | invoke con_write_asciiz, str_err_socket |
|
295 | invoke con_write_asciiz, str_err_socket |
300 | invoke con_set_flags ; reset color |
Line 296... | Line 301... | ||
296 | ret |
301 | ret |
- | 302 | ||
297 | 303 | ||
298 | 304 | ||
Line 299... | Line 305... | ||
299 | 305 | error_socket: |
|
- | 306 | invoke con_set_flags, 0x0c ; print errors in red |
|
300 | error_socket: |
307 | invoke con_write_asciiz, str_err_socket |
Line 301... | Line 308... | ||
301 | invoke con_write_asciiz, str_err_socket |
308 | jmp wait_for_keypress |
- | 309 | ||
302 | jmp wait_for_keypress |
310 | error_resolve: |
303 | 311 | invoke con_set_flags, 0x0c ; print errors in red |
|
- | 312 | invoke con_write_asciiz, str_err_resolve |
|
304 | error_resolve: |
313 | |
Line 305... | Line 314... | ||
305 | invoke con_write_asciiz, str_err_resolve |
314 | wait_for_keypress: |
306 | 315 | invoke con_set_flags, 0x07 ; reset color to grey |
|
Line 318... | Line 327... | ||
318 | 327 | ||
319 | 328 | ||
320 | 329 | ||
321 | ; data |
330 | ; data |
322 | str_title db 'FTP client',0 |
331 | str_title db 'FTP client',0 |
Line 323... | Line 332... | ||
323 | str_welcome db 'FTP client for KolibriOS v0.08',10 |
332 | str_welcome db 'FTP client for KolibriOS v0.09',10 |
324 | db 10 |
333 | db 10 |