Subversion Repositories Kolibri OS

Rev

Rev 3500 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3500 Rev 3555
Line 8... Line 8...
8
;-------------------------------------------------------------------------
8
;-------------------------------------------------------------------------
9
;Loading configuration from ini file
9
;Loading configuration from ini file
10
;    {SPraid.simba}
10
;    {SPraid.simba}
11
;-------------------------------------------------------------------------
11
;-------------------------------------------------------------------------
Line 12... Line 12...
12
 
12
 
Line 13... Line 13...
13
$Revision: 3500 $
13
$Revision: 3555 $
14
 
14
 
15
iglobal
15
iglobal
Line 70... Line 70...
70
ugui_mouse_speed_def db '2',0
70
ugui_mouse_speed_def db '2',0
71
ugui_mouse_delay_def db '0x00A',0
71
ugui_mouse_delay_def db '0x00A',0
72
udev_midibase db 'midibase',0
72
udev_midibase db 'midibase',0
73
udev_midibase_def db '0x320',0
73
udev_midibase_def db '0x320',0
74
endg
74
endg
75
;set up netvork configuration
-
 
76
proc set_network_conf
-
 
77
locals
-
 
78
  par db 30 dup(?)
-
 
79
endl
-
 
80
        pushad
-
 
81
 
-
 
82
  ;[net]
-
 
83
  ;active
-
 
84
        lea     eax, [par]
-
 
85
        invoke  ini.get_int, conf_fname, unet, unet_active, 0
-
 
86
        or      eax, eax
-
 
87
        jz      .do_not_set_net
-
 
88
        mov     eax, [stack_config]
-
 
89
        and     eax, 0xFFFFFF80
-
 
90
        add     eax, 3
-
 
91
        mov     [stack_config], eax
-
 
92
        call    ash_eth_enable
-
 
93
 
-
 
94
  ;addr
-
 
95
        lea     eax, [par]
-
 
96
        push    eax
-
 
97
        invoke  ini.get_str, conf_fname, unet, unet_addr, eax, 30, unet_def
-
 
98
        pop     eax
-
 
99
        stdcall do_inet_adr, eax
-
 
100
        mov     [stack_ip], eax
-
 
101
 
-
 
102
  ;mask
-
 
103
        lea     eax, [par]
-
 
104
        push    eax
-
 
105
        invoke  ini.get_str, conf_fname, unet, unet_mask, eax, 30, unet_def
-
 
106
        pop     eax
-
 
107
        stdcall do_inet_adr, eax
-
 
108
        mov     [subnet_mask], eax
-
 
Line 109... Line -...
109
 
-
 
110
  ;gate
-
 
111
        lea     eax, [par]
-
 
112
        push    eax
-
 
113
        invoke  ini.get_str, conf_fname, unet, unet_gate, eax, 30, unet_def
-
 
114
        pop     eax
-
 
115
        stdcall do_inet_adr, eax
-
 
116
        mov     [gateway_ip], eax
-
 
117
.do_not_set_net:
-
 
118
        popad
-
 
119
        ret
-
 
120
 
-
 
121
 
-
 
122
endp
75
 
123
iglobal
76
iglobal
124
if lang eq sp
77
if lang eq sp
125
  include 'core/conf_lib-sp.inc'
78
  include 'core/conf_lib-sp.inc'
126
else
79
else
Line 162... Line 115...
162
 
115
 
163
; convert string to DWord for decimal value
116
; convert string to DWord for decimal value
164
proc strtoint_dec stdcall,strs
117
proc strtoint_dec stdcall,strs
165
        pushad
118
        pushad
166
        xor     edx, edx
119
        xor     edx, edx
167
  ; ¯®¨áª ª®­æ 
120
  ; поиск конца
168
        mov     esi, [strs]
121
        mov     esi, [strs]
169
@@:
122
@@:
170
        lodsb
123
        lodsb
171
        or      al, al
124
        or      al, al
Line 178... Line 131...
178
 
131
 
179
@@:
132
@@:
180
        dec     ebx
133
        dec     ebx
181
        or      ebx, ebx
134
        or      ebx, ebx
182
        jz      @f
135
        jz      @f
183
        imul    ecx, ecx, 10; ¯®à冷ª
136
        imul    ecx, ecx, 10; порядок
184
        jmp     @b
137
        jmp     @b
Line 185... Line 138...
185
@@:
138
@@: