Rev 2995 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2995 | Rev 3144 | ||
---|---|---|---|
Line 49... | Line 49... | ||
49 | ABORT = 1 shl 31 |
49 | ABORT = 1 shl 31 |
Line 50... | Line 50... | ||
50 | 50 | ||
Line 51... | Line 51... | ||
51 | format binary as "" |
51 | format binary as "" |
- | 52 | ||
- | 53 | use32 |
|
- | 54 | ||
52 | 55 | org 0x0 |
|
53 | use32 |
56 | |
54 | db 'MENUET01' ; signature |
57 | db 'MENUET01' ; signature |
55 | dd 1 ; header version |
58 | dd 1 ; header version |
56 | dd start ; entry point |
59 | dd start ; entry point |
Line 117... | Line 120... | ||
117 | 120 | ||
118 | ; initialize console |
121 | ; initialize console |
119 | invoke con_start, 1 |
122 | invoke con_start, 1 |
Line -... | Line 123... | ||
- | 123 | invoke con_init, -1, -1, -1, -1, title |
|
120 | invoke con_init, -1, -1, -1, -1, title |
124 | |
121 | 125 | ; get settings from ini |
|
122 | invoke ini.get_str, path, str_ftpd, str_ip, ini_buf, 16, 0 |
126 | invoke ini.get_str, path, str_ftpd, str_ip, ini_buf, 16, 0 |
123 | mov esi, ini_buf |
127 | mov esi, ini_buf |
124 | mov cl, '.' |
128 | mov cl, '.' |
Line 131... | Line 135... | ||
131 | 135 | ||
132 | xchg al, ah |
136 | xchg al, ah |
133 | invoke con_printf, str1, eax |
137 | invoke con_printf, str1, eax |
Line -... | Line 138... | ||
- | 138 | add esp, 8 |
|
134 | add esp, 8 |
139 | |
135 | 140 | ; open listening socket |
|
136 | mcall socket, AF_INET4, SOCK_STREAM, 0 |
141 | mcall socket, AF_INET4, SOCK_STREAM, 0 |
137 | cmp eax, -1 |
142 | cmp eax, -1 |