Rev 3790 | Rev 3794 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3701 | hidnplayr | 1 | cmd_list: |
2 | |||
3 | call open_dataconnection |
||
4 | |||
5 | mov dword[s], "LIST" |
||
3789 | hidnplayr | 6 | mov byte[s+4], 0x0a |
7 | mcall send, [socketnum], s, 5 |
||
3701 | hidnplayr | 8 | |
3789 | hidnplayr | 9 | jmp wait_for_servercommand |
3701 | hidnplayr | 10 | |
11 | |||
12 | cmd_help: |
||
13 | |||
14 | push str_help |
||
15 | call [con_write_asciiz] |
||
16 | |||
3790 | hidnplayr | 17 | jmp wait_for_usercommand |
18 | |||
19 | cmd_cwd: |
||
20 | |||
21 | mov dword[s], "CWD " |
||
22 | |||
23 | mov ecx, 256 |
||
24 | xor al, al |
||
25 | mov edi, s |
||
26 | repne scasb |
||
27 | lea esi, [edi - s - 1] |
||
28 | |||
29 | mcall send, [socketnum], s, , 0 |
||
30 | |||
3793 | hidnplayr | 31 | jmp wait_for_servercommand |
32 | |||
33 | |||
34 | cmd_retr: |
||
35 | |||
36 | call open_dataconnection |
||
37 | |||
38 | mov dword[s], "RETR" |
||
39 | mov byte[s+4], " " |
||
40 | |||
41 | mov ecx, 256 |
||
42 | xor al, al |
||
43 | mov edi, s |
||
44 | repne scasb |
||
45 | lea esi, [edi - s - 1] |
||
46 | |||
47 | mcall send, [socketnum], s, , 0 |
||
48 | |||
49 | jmp wait_for_servercommand |
||
50 | |||
51 | |||
52 | cmd_stor: |
||
53 | |||
54 | call open_dataconnection |
||
55 | |||
56 | mov dword[s], "STOR" |
||
57 | mov byte[s+4], " " |
||
58 | |||
59 | mov ecx, 256 |
||
60 | xor al, al |
||
61 | mov edi, s |
||
62 | repne scasb |
||
63 | lea esi, [edi - s - 1] |
||
64 | |||
65 | mcall send, [socketnum], s, , 0 |
||
66 | |||
3790 | hidnplayr | 67 | jmp wait_for_servercommand |