Rev 1542 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1542 | Rev 2853 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2010. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2010-2012. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;; Synergyc.asm - Synergy client for KolibriOS ;; |
6 | ;; Synergyc.asm - Synergy client for KolibriOS ;; |
7 | ;; ;; |
7 | ;; ;; |
8 | ;; Written by hidnplayr@kolibrios.org ;; |
8 | ;; Written by hidnplayr@kolibrios.org ;; |
Line 10... | Line 10... | ||
10 | ;; GNU GENERAL PUBLIC LICENSE ;; |
10 | ;; GNU GENERAL PUBLIC LICENSE ;; |
11 | ;; Version 2, June 1991 ;; |
11 | ;; Version 2, June 1991 ;; |
12 | ;; ;; |
12 | ;; ;; |
13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line -... | Line 14... | ||
- | 14 | ||
- | 15 | format binary as "" |
|
14 | 16 | ||
15 | use32 |
17 | use32 |
Line 16... | Line 18... | ||
16 | org 0x0 |
18 | org 0x0 |
17 | 19 | ||
18 | db 'MENUET01' ; signature |
20 | db 'MENUET01' ; signature |
19 | dd 1 ; header version |
21 | dd 1 ; header version |
20 | dd start ; entry point |
22 | dd start ; entry point |
21 | dd i_end ; initialized size |
23 | dd i_end ; initialized size |
22 | dd mem ; required memory |
24 | dd mem+0x1000 ; required memory |
23 | dd mem ; stack pointer |
25 | dd mem+0x1000 ; stack pointer |
Line -... | Line 26... | ||
- | 26 | dd 0 ; parameters |
|
- | 27 | dd path ; path |
|
- | 28 | ||
24 | dd 0 ; parameters |
29 | __DEBUG__ equ 1 ; enable/disable |
Line 25... | Line -... | ||
25 | dd path ; path |
- | |
26 | 30 | __DEBUG_LEVEL__ equ 1 ; 1 = all, 2 = errors |
|
27 | BUFFERSIZE equ 1024 |
31 | |
- | 32 | BUFFERSIZE equ 1024 |
|
- | 33 | ||
28 | 34 | include '../macros.inc' |
|
Line 29... | Line 35... | ||
29 | include '../proc32.inc' |
35 | purge mov,add,sub |
Line 30... | Line 36... | ||
30 | include '../macros.inc' |
36 | include '../debug-fdo.inc' |
Line 39... | Line 45... | ||
39 | mov edi, path ; Calculate the length of zero-terminated string |
45 | mov edi, path ; Calculate the length of zero-terminated string |
40 | xor al , al |
46 | xor al, al |
41 | mov ecx, 1024 |
47 | mov ecx, 1024 |
42 | repne scasb |
48 | repne scasb |
43 | dec edi |
49 | dec edi |
44 | mov esi, filename |
50 | mov esi, filename ; append the path with '.ini' |
45 | movsd |
51 | movsd |
46 | movsb |
52 | movsb |
Line 47... | Line 53... | ||
47 | 53 | ||
Line 346... | Line 352... | ||
346 | ; import |
352 | ; import |
347 | align 16 |
353 | align 16 |
348 | @IMPORT: |
354 | @IMPORT: |
Line 349... | Line 355... | ||
349 | 355 | ||
350 | library console, 'console.obj',\ |
356 | library console, 'console.obj',\ |
351 | libini, 'libini.obj',\ |
357 | network, 'network.obj',\ |
Line 352... | Line 358... | ||
352 | network, 'network.obj' |
358 | libini, 'libini.obj' |
353 | 359 | ||
Line 354... | Line 360... | ||
354 | import network,\ |
360 | import network,\ |
Line 366... | Line 372... | ||
366 | 372 | ||
367 | import libini,\ |
373 | import libini,\ |
368 | ini.get_str, 'ini_get_str',\ |
374 | ini.get_str, 'ini_get_str',\ |
Line -... | Line 375... | ||
- | 375 | ini.get_int, 'ini_get_int' |
|
- | 376 | ||
369 | ini.get_int, 'ini_get_int' |
377 | include_debug_strings |
370 | 378 | ||
371 | align 4 |
379 | align 4 |
372 | i_end: |
380 | i_end: |
373 | socketnum dd ? |
381 | socketnum dd ? |