Rev 5725 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5725 | Rev 5731 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | public _http_init |
5 | public _http_init |
6 | public _http_get@16 |
6 | public _http_get@16 |
7 | public _http_receive@4 |
7 | public _http_receive@4 |
8 | public _http_free@4 |
8 | public _http_free@4 |
Line -... | Line 9... | ||
- | 9 | ||
- | 10 | public _con_init@20 |
|
- | 11 | public _con_exit@4 |
|
- | 12 | public _con_get_flags |
|
- | 13 | public _con_set_flags@4 |
|
- | 14 | public _con_cls |
|
- | 15 | public _con_write_asciiz@4 |
|
9 | 16 | ||
Line 10... | Line 17... | ||
10 | section '.text' align 16 |
17 | section '.text' align 16 |
11 | 18 | ||
Line 127... | Line 134... | ||
127 | inc eax |
134 | inc eax |
128 | ret 4 |
135 | ret 4 |
Line 129... | Line 136... | ||
129 | 136 | ||
130 | align 4 |
137 | align 4 |
- | 138 | _http_init: |
|
- | 139 | push ebx |
|
- | 140 | mov eax, 40 |
|
- | 141 | mov ebx, 1 shl 8 |
|
- | 142 | int 0x40 |
|
Line 131... | Line 143... | ||
131 | _http_init: |
143 | pop ebx |
132 | 144 | ||
- | 145 | push @IMPORT |
|
- | 146 | call dll_load |
|
- | 147 | test eax, eax |
|
- | 148 | jnz .fail |
|
- | 149 | push 1 |
|
- | 150 | call [con_start] |
|
133 | push @IMPORT |
151 | xor eax, eax |
Line 134... | Line 152... | ||
134 | call dll_load |
152 | .fail: |
135 | ret |
153 | ret |
136 | 154 | ||
Line 144... | Line 162... | ||
144 | 162 | ||
145 | align 4 |
163 | align 4 |
146 | _http_free@4: |
164 | _http_free@4: |
Line -... | Line 165... | ||
- | 165 | jmp [HTTP_free] |
|
- | 166 | ||
- | 167 | align 4 |
|
- | 168 | _con_init@20: |
|
- | 169 | jmp [con_init] |
|
- | 170 | ||
- | 171 | align 4 |
|
- | 172 | _con_exit@4: |
|
- | 173 | jmp [con_exit] |
|
- | 174 | ||
- | 175 | align 4 |
|
- | 176 | _con_write_asciiz@4: |
|
- | 177 | jmp [con_write_asciiz] |
|
- | 178 | ||
- | 179 | _con_get_flags: |
|
- | 180 | _con_set_flags@4: |
|
- | 181 | _con_cls: |
|
- | 182 | ret |
|
147 | jmp [HTTP_free] |
183 | |
148 | 184 | ||
149 | proc mem.Alloc, size |
185 | proc mem.Alloc, size |
150 | push ebx ecx |
186 | push ebx ecx |
151 | mov ecx, [size] |
187 | mov ecx, [size] |
Line 222... | Line 258... | ||
222 | } |
258 | } |
Line 223... | Line 259... | ||
223 | 259 | ||
224 | align 4 |
260 | align 4 |
Line 225... | Line 261... | ||
225 | @IMPORT: |
261 | @IMPORT: |
- | 262 | ||
Line 226... | Line 263... | ||
226 | 263 | library lib_http, 'http.obj', \ |
|
227 | library lib_http, 'http.obj' |
264 | console, 'console.obj' |
228 | 265 | ||
229 | import lib_http, \ |
266 | import lib_http, \ |
Line -... | Line 267... | ||
- | 267 | HTTP_get, 'get', \ |
|
- | 268 | HTTP_receive, 'receive', \ |
|
- | 269 | HTTP_free, 'free' |
|
- | 270 | ||
- | 271 | import console, \ |
|
- | 272 | con_start, 'START', \ |
|
- | 273 | con_init, 'con_init', \ |
|
- | 274 | con_write_asciiz,'con_write_asciiz',\ |
|
- | 275 | con_exit, 'con_exit', \ |
|
- | 276 | con_gets, 'con_gets', \ |
|
- | 277 | con_cls, 'con_cls', \ |
|
- | 278 | con_getch2, 'con_getch2', \ |
|
- | 279 | con_set_cursor_pos, 'con_set_cursor_pos',\ |
|
230 | HTTP_get, 'get', \ |
280 | con_write_string, 'con_write_string',\ |
231 | HTTP_receive, 'receive', \ |
281 | con_get_flags, 'con_get_flags', \ |
232 | HTTP_free, 'free' |
282 | con_set_flags, 'con_set_flags' |