Rev 535 | Rev 593 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 535 | Rev 536 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | $Revision: 535 $ |
1 | $Revision: 536 $ |
2 | ;------------------------------------------------------------------------- |
2 | ;------------------------------------------------------------------------- |
3 | ;Loading configuration from ini file |
3 | ;Loading configuration from ini file |
4 | ; {SPraid.simba} |
4 | ; {SPraid.simba} |
5 | ;------------------------------------------------------------------------- |
5 | ;------------------------------------------------------------------------- |
Line 19... | Line 19... | ||
19 | lea eax,[par] |
19 | lea eax,[par] |
20 | push eax |
20 | push eax |
21 | invoke ini.get_str,conf_fname, ugui, ugui_mouse_speed, eax,30, ugui_mouse_speed_def |
21 | invoke ini.get_str,conf_fname, ugui, ugui_mouse_speed, eax,30, ugui_mouse_speed_def |
22 | pop eax |
22 | pop eax |
23 | stdcall strtoint,eax |
23 | stdcall strtoint,eax |
24 | push eax |
- | |
25 | pop edx |
- | |
26 | call _mouse_speed |
24 | mov [mouse_speed_factor], ax |
27 | - | ||
28 | popad |
- | |
29 | ret |
- | |
Line 30... | Line 25... | ||
30 | 25 | ||
31 | ;mouse_delay |
26 | ;mouse_delay |
32 | lea eax,[par] |
27 | lea eax,[par] |
33 | push eax |
28 | push eax |
34 | invoke ini.get_str,conf_fname, ugui, ugui_mouse_delay, eax,30, ugui_mouse_delay_def |
29 | invoke ini.get_str,conf_fname, ugui, ugui_mouse_delay, eax,30, ugui_mouse_delay_def |
35 | pop eax |
30 | pop eax |
36 | stdcall strtoint,eax |
- | |
37 | push eax |
- | |
38 | pop edx |
31 | stdcall strtoint,eax |
Line 39... | Line 32... | ||
39 | call _mouse_delay |
32 | mov [mouse_delay], eax |
40 | 33 | ||
41 | ;[dev] |
34 | ;[dev] |
42 | ;sb16 |
35 | ;sb16 |
43 | lea eax,[par] |
36 | lea eax,[par] |
44 | push eax |
37 | push eax |
45 | invoke ini.get_str,conf_fname, udev, udev_sb16, eax,30, udev_sb16_def |
38 | invoke ini.get_str,conf_fname, udev, udev_sb16, eax,30, udev_sb16_def |
46 | pop eax |
39 | pop eax |
47 | stdcall strtoint,eax |
40 | stdcall strtoint,eax |
- | 41 | cmp eax, 0x100 |
|
48 | push eax |
42 | jb @f |
- | 43 | cmp eax, 0x10000 |
|
- | 44 | jae @f |
|
Line 49... | Line 45... | ||
49 | pop ecx |
45 | mov [sb16], eax |
50 | call _sb16 |
46 | @@: |
51 | 47 | ||
52 | ;sound_dma |
48 | ;sound_dma |
53 | lea eax,[par] |
49 | lea eax,[par] |
54 | push eax |
50 | push eax |
55 | invoke ini.get_str,conf_fname, udev, udev_sound_dma, eax,30, udev_sound_dma_def |
51 | invoke ini.get_str,conf_fname, udev, udev_sound_dma, eax,30, udev_sound_dma_def |
56 | pop eax |
52 | pop eax |
57 | stdcall strtoint,eax |
53 | stdcall strtoint,eax |
58 | push eax |
54 | cmp eax, 3 |
Line 59... | Line 55... | ||
59 | pop ecx |
55 | ja @f |
60 | call _sound_dma |
56 | mov [sound_dma], eax |
61 | 57 | @@: |
|
62 | 58 | ||
63 | ;midibase |
59 | ;midibase |
64 | lea eax,[par] |
60 | lea eax,[par] |
- | 61 | push eax |
|
- | 62 | invoke ini.get_str,conf_fname, udev, udev_midibase, eax,30, udev_midibase_def |
|
- | 63 | pop eax |
|
65 | push eax |
64 | stdcall strtoint,eax |
- | 65 | cmp eax, 0x100 |
|
- | 66 | jb @f |
|
66 | invoke ini.get_str,conf_fname, udev, udev_midibase, eax,30, udev_midibase_def |
67 | cmp eax, 0x10000 |
67 | pop eax |
68 | jae @f |
68 | stdcall strtoint,eax |
69 | mov [midi_base], ax |
Line 69... | Line 70... | ||
69 | push eax |
70 | mov [mididp], eax |
70 | pop ecx |
71 | inc eax |
71 | call _midibase |
72 | mov [midisp], eax |
Line 100... | Line 101... | ||
100 | ;active |
101 | ;active |
101 | lea eax,[par] |
102 | lea eax,[par] |
102 | invoke ini.get_int,conf_fname, unet, unet_active, 0 |
103 | invoke ini.get_int,conf_fname, unet, unet_active, 0 |
103 | or eax,eax |
104 | or eax,eax |
104 | jz .do_not_set_net |
105 | jz .do_not_set_net |
- | 106 | mov eax, [stack_config] |
|
- | 107 | and eax, 0xFFFFFF80 |
|
- | 108 | add eax, 3 |
|
- | 109 | mov [stack_config], eax |
|
105 | call _net_up |
110 | call ash_eth_enable |
Line 106... | Line 111... | ||
106 | 111 | ||
107 | ;addr |
112 | ;addr |
108 | lea eax,[par] |
113 | lea eax,[par] |
109 | push eax |
114 | push eax |
110 | invoke ini.get_str,conf_fname, unet, unet_addr, eax,30, unet_def |
115 | invoke ini.get_str,conf_fname, unet, unet_addr, eax,30, unet_def |
111 | pop eax |
116 | pop eax |
112 | stdcall do_inet_adr,eax |
- | |
113 | push eax |
- | |
114 | pop ecx |
117 | stdcall do_inet_adr,eax |
Line 115... | Line 118... | ||
115 | call _net_addr |
118 | mov [stack_ip], eax |
116 | 119 | ||
117 | ;mask |
120 | ;mask |
118 | lea eax,[par] |
121 | lea eax,[par] |
119 | push eax |
122 | push eax |
120 | invoke ini.get_str,conf_fname, unet, unet_mask, eax,30, unet_def |
123 | invoke ini.get_str,conf_fname, unet, unet_mask, eax,30, unet_def |
121 | pop eax |
- | |
122 | stdcall do_inet_adr,eax |
- | |
123 | push eax |
124 | pop eax |
Line 124... | Line 125... | ||
124 | pop ecx |
125 | stdcall do_inet_adr,eax |
125 | call _net_mask |
126 | mov [subnet_mask], eax |
126 | 127 | ||
127 | ;gate |
128 | ;gate |
128 | lea eax,[par] |
129 | lea eax,[par] |
129 | push eax |
130 | push eax |
130 | invoke ini.get_str,conf_fname, unet, unet_gate, eax,30, unet_def |
- | |
131 | pop eax |
- | |
132 | stdcall do_inet_adr,eax |
131 | invoke ini.get_str,conf_fname, unet, unet_gate, eax,30, unet_def |
133 | push eax |
132 | pop eax |
134 | pop ecx |
133 | stdcall do_inet_adr,eax |
135 | call _net_gate |
134 | mov [gateway_ip], eax |
Line 309... | Line 308... | ||
309 | @@: |
308 | @@: |
310 | mov [esp+28],ebx |
309 | mov [esp+28],ebx |
311 | popad |
310 | popad |
312 | ret |
311 | ret |
313 | endp |
312 | endp |
314 | - | ||
315 | - | ||
316 | ;setup configurations |
- | |
317 | - | ||
318 | _mouse_speed: |
- | |
319 | mov eax,18 |
- | |
320 | mov ebx,19 |
- | |
321 | mov ecx,1 |
- | |
322 | int 0x40 |
- | |
323 | ret |
- | |
324 | - | ||
325 | _mouse_delay: |
- | |
326 | mov eax,18 |
- | |
327 | mov ebx,19 |
- | |
328 | mov ecx,3 |
- | |
329 | int 0x40 |
- | |
330 | ret |
- | |
331 | - | ||
332 | _sb16: |
- | |
333 | mov eax,21 |
- | |
334 | mov ebx,4 |
- | |
335 | int 0x40 |
- | |
336 | ret |
- | |
337 | - | ||
338 | _sound_dma: |
- | |
339 | mov eax,21 |
- | |
340 | mov ebx,10 |
- | |
341 | int 0x40 |
- | |
342 | ret |
- | |
343 | - | ||
344 | - | ||
345 | _midibase: |
- | |
346 | mov eax,21 |
- | |
347 | mov ebx,1 |
- | |
348 | int 0x40 |
- | |
349 | ret |
- | |
350 | - | ||
351 | _net_addr: |
- | |
352 | mov eax,52 |
- | |
353 | mov ebx,3 |
- | |
354 | int 0x40 |
- | |
355 | ret |
- | |
356 | - | ||
357 | _net_mask: |
- | |
358 | mov eax,52 |
- | |
359 | mov ebx,12 |
- | |
360 | int 0x40 |
- | |
361 | ret |
- | |
362 | - | ||
363 | _net_gate: |
- | |
364 | mov eax,52 |
- | |
365 | mov ebx,11 |
- | |
366 | int 0x40 |
- | |
367 | ret |
- | |
368 | - | ||
369 | _net_up: |
- | |
370 | mov eax,52 |
- | |
371 | mov ebx,0 |
- | |
372 | int 0x40 |
- | |
373 | and eax,0xFFFFFF80 |
- | |
374 | add eax,3 |
- | |
375 | mov ecx,eax |
- | |
376 | - | ||
377 | mov eax,52 |
- | |
378 | mov ebx,2 |
- | |
379 | int 0x40 |
- | |
380 | ret |
- |