Subversion Repositories Kolibri OS

Rev

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

Rev 3813 Rev 3814
Line 12... Line 12...
12
 
12
 
Line 13... Line 13...
13
        jmp     main
13
        jmp     main
Line 14... Line 14...
14
 
14
 
-
 
15
cmd_pwd:
15
cmd_pwd:
16
 
Line 16... Line 17...
16
 
17
        mov     dword[s], "PWD" + 13 shl 24
Line 17... Line 18...
17
        mov     dword[s], "PWD" + 10 shl 24
18
        mov     byte[s+4], 10
Line 25... Line 26...
25
 
26
 
26
        mov     ecx, 256
27
        mov     ecx, 256
27
        xor     al, al
28
        xor     al, al
28
        mov     edi, s
29
        mov     edi, s
29
        repne scasb
30
        repne scasb
-
 
31
        lea     esi, [edi - s]
Line 30... Line 32...
30
        lea     esi, [edi - s - 1]
32
        mov     word [edi - 2], 0x0a0d
Line 31... Line 33...
31
 
33
 
Line 40... Line 42...
40
 
42
 
41
        mov     ecx, 256
43
        mov     ecx, 256
42
        xor     al, al
44
        xor     al, al
43
        mov     edi, s
45
        mov     edi, s
44
        repne scasb
46
        repne scasb
-
 
47
        lea     esi, [edi - s]
Line 45... Line 48...
45
        lea     esi, [edi - s - 1]
48
        mov     word [edi - 2], 0x0a0d
Line 46... Line 49...
46
 
49
 
Line 53... Line 56...
53
        call    open_dataconnection
56
        call    open_dataconnection
Line 54... Line 57...
54
 
57
 
Line 55... Line 58...
55
        mov     [operation], OPERATION_LIST
58
        mov     [operation], OPERATION_LIST
56
 
59
 
57
        mov     dword[s], "LIST"
60
        mov     dword[s], "LIST"
Line 58... Line 61...
58
        mov     byte[s+4], 0x0a
61
        mov     word[s+4], 0x0a0d
Line 59... Line 62...
59
        mcall   send, [socketnum], s, 5, 0
62
        mcall   send, [socketnum], s, 6, 0
Line 89... Line 92...
89
 
92
 
90
        mov     ecx, 256
93
        mov     ecx, 256
91
        xor     al, al
94
        xor     al, al
92
        mov     edi, s
95
        mov     edi, s
93
        repne scasb
96
        repne scasb
-
 
97
        lea     esi, [edi - s]
94
        lea     esi, [edi - s - 1]
98
        mov     word [edi - 2], 0x0a0d
Line 95... Line 99...
95
        mcall   send, [socketnum], s, , 0
99
        mcall   send, [socketnum], s, , 0
Line 119... Line 123...
119
 
123
 
120
        mov     ecx, 256
124
        mov     ecx, 256
121
        xor     al, al
125
        xor     al, al
122
        mov     edi, s
126
        mov     edi, s
123
        repne scasb
127
        repne scasb
-
 
128
        lea     esi, [edi - s]
124
        lea     esi, [edi - s - 1]
129
        mov     word [edi - 2], 0x0a0d
Line 125... Line 130...
125
        mcall   send, [socketnum], s, , 0
130
        mcall   send, [socketnum], s, , 0
Line 150... Line 155...
150
        jmp     wait_for_usercommand
155
        jmp     wait_for_usercommand
Line 151... Line 156...
151
 
156
 
Line 152... Line 157...
152
cmd_cdup:
157
cmd_cdup:
153
 
158
 
154
        mov     dword[s], "CDUP"
159
        mov     dword[s], "CDUP"
Line 155... Line 160...
155
        mov     byte[s+4], 0x0a
160
        mov     word[s+4], 0x0d0a
Line 156... Line 161...
156
        mcall   send, [socketnum], s, 5, 0
161
        mcall   send, [socketnum], s, 6, 0
Line 163... Line 168...
163
 
168
 
164
        mov     ecx, 256
169
        mov     ecx, 256
165
        xor     al, al
170
        xor     al, al
166
        mov     edi, s
171
        mov     edi, s
167
        repne scasb
172
        repne scasb
-
 
173
        lea     esi, [edi - s]
Line 168... Line 174...
168
        lea     esi, [edi - s - 1]
174
        mov     word [edi - 2], 0x0a0d
Line 169... Line 175...
169
 
175
 
Line 177... Line 183...
177
 
183
 
178
        mov     ecx, 256
184
        mov     ecx, 256
179
        xor     al, al
185
        xor     al, al
180
        mov     edi, s
186
        mov     edi, s
181
        repne scasb
187
        repne scasb
-
 
188
        lea     esi, [edi - s]
Line 182... Line 189...
182
        lea     esi, [edi - s - 1]
189
        mov     word [edi - 2], 0x0a0d
Line 183... Line 190...
183
 
190