Rev 3549 | Rev 3704 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3549 | Rev 3618 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
- | 2 | ;; ;; |
|
- | 3 | ;; Copyright (C) KolibriOS team 2010-2013. All rights reserved. ;; |
|
- | 4 | ;; Distributed under terms of the GNU General Public License ;; |
|
- | 5 | ;; ;; |
|
- | 6 | ;; tftpc.asm - TFTP client for KolibriOS ;; |
|
- | 7 | ;; ;; |
|
- | 8 | ;; Written by hidnplayr@kolibrios.org ;; |
|
- | 9 | ;; ;; |
|
- | 10 | ;; GNU GENERAL PUBLIC LICENSE ;; |
|
- | 11 | ;; Version 2, June 1991 ;; |
|
- | 12 | ;; ;; |
|
- | 13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
- | 14 | ||
1 | format binary as "" |
15 | format binary as "" |
Line 2... | Line 16... | ||
2 | 16 | ||
3 | use32 |
17 | use32 |
Line 4... | Line 18... | ||
4 | org 0x0 |
18 | org 0x0 |
5 | 19 | ||
6 | db 'MENUET01' |
20 | db 'MENUET01' |
7 | dd 0x1 |
21 | dd 0x1 |
8 | dd START |
22 | dd START |
9 | dd I_END |
23 | dd I_END |
10 | dd IM_END |
24 | dd IM_END+0x1000 |
Line 11... | Line 25... | ||
11 | dd IM_END |
25 | dd IM_END+0x1000 |
12 | dd 0, 0 |
26 | dd 0, 0 |
13 | 27 | ||
14 | include '../proc32.inc' |
28 | include '../../proc32.inc' |
15 | include '../macros.inc' |
29 | include '../../macros.inc' |
Line 16... | Line 30... | ||
16 | include '../libio.inc' |
30 | include '../../libio.inc' |
17 | include '../dll.inc' |
- | |
Line 18... | Line -... | ||
18 | include '../../develop/libraries/box_lib/trunk/box_lib.mac' |
- | |
19 | - | ||
20 | include '../network.inc' |
- | |
Line -... | Line 31... | ||
- | 31 | include '../../dll.inc' |
|
21 | 32 | include '../../develop/libraries/box_lib/trunk/box_lib.mac' |
|
22 | 33 | ||
23 | filebuffer_size equ 4*4096 ; 16kb (dont try to change it yet..) |
34 | include '../../network.inc' |
24 | TIMEOUT equ 100 |
35 | |
25 | buffer_len equ 1500 |
36 | |
26 | 37 | filebuffer_size = 4*4096 ; 16kb (dont try to change it yet..) |
|
27 | AF_INET4 equ 2 |
38 | TIMEOUT = 100 |
28 | IP_PROTO_UDP equ 17 |
39 | buffer_len = 1500 |
Line 29... | Line 40... | ||
29 | 40 | ||
30 | opcode_rrq equ 1 |
41 | opcode_rrq = 1 |
31 | opcode_wrq equ 2 |
42 | opcode_wrq = 2 |
32 | opcode_data equ 3 |
43 | opcode_data = 3 |
Line 559... | Line 570... | ||
559 | I_END: |
570 | I_END: |
560 | mouse_dd dd ? |
571 | mouse_dd dd ? |
561 | buffer: |
572 | buffer: |
562 | rb buffer_len |
573 | rb buffer_len |
Line 563... | Line -... | ||
563 | - | ||
564 | rb 0x1000 ; stack |
- | |
565 | 574 | ||
566 | IM_END: |
575 | IM_END: |