Subversion Repositories Kolibri OS

Rev

Rev 2550 | Rev 3671 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2550 Rev 2639
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                               ;;
2
;;                               ;;
3
;;          DEVICE SETUP         ;;
3
;;          DEVICE SETUP         ;;
4
;;                               ;;
4
;;                               ;;
5
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
5
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
 
6
; version:	1.15
-
 
7
; last update:  20/04/2012
-
 
8
; changed by:   Marat Zakiyanov aka Mario79, aka Mario
-
 
9
; changes:      Add the flag of speaker mute.
-
 
10
;               Correcting setup.dat
-
 
11
;---------------------------------------------------------------------
6
; version:	1.14
12
; version:	1.14
7
; last update:  20/03/2012
13
; last update:  20/03/2012
8
; changed by:   Marat Zakiyanov aka Mario79, aka Mario
14
; changed by:   Marat Zakiyanov aka Mario79, aka Mario
9
; changes:      optimisations and code refactoring
15
; changes:      optimisations and code refactoring
10
;---------------------------------------------------------------------
16
;---------------------------------------------------------------------
11
; Authors: Ville       - original version
17
; Authors: Ville       - original version
12
;          A. Ivushkin - autostart (w launcher)
18
;          A. Ivushkin - autostart (w launcher)
13
;          M. Lisovin  - added many feauters (apply all, save all, set time...)
19
;          M. Lisovin  - added many feauters (apply all, save all, set time...)
14
;          I. Poddubny - fixed russian keymap
20
;          I. Poddubny - fixed russian keymap
15
;14/08/06  Mario79 - added regulation of mouse features
21
;14/08/06  Mario79 - added regulation of mouse features
16
;-------------------------------------------------------------------------------
22
;-------------------------------------------------------------------------------
17
	use32
23
	use32
18
	org 0x0
24
	org 0x0
19
 
25
 
20
	db 'MENUET01'	; 8 byte identifier
26
	db 'MENUET01'	; 8 byte identifier
21
	dd 0x01		; header version
27
	dd 0x01		; header version
22
	dd START	; pointer to program start
28
	dd START	; pointer to program start
23
	dd IM_END	; size of image
29
	dd IM_END	; size of image
24
	dd I_END	;0x4000	; reguired amount of memory
30
	dd I_END	; reguired amount of memory
25
	dd stack_area	; stack pointer (esp)
31
	dd stack_area	; stack pointer (esp)
26
	dd I_PARAM	; boot parameters
32
	dd boot_param	; boot parameters
27
	dd 0x0		; path
33
	dd 0x0		; path
28
;-------------------------------------------------------------------------------
34
;-------------------------------------------------------------------------------
29
include '..\..\..\macros.inc'
35
include '..\..\..\macros.inc'
30
;-------------------------------------------------------------------------------
36
;-------------------------------------------------------------------------------
31
LLL equ (56+3)
37
LLL equ (56+3)
32
BBB equ 25
38
BBB equ 25
33
;-------------------------------------------------------------------------------
39
;-------------------------------------------------------------------------------
34
apply_all:
40
apply_all:
35
	call	_pci_acc    ;12
41
	call	_pci_acc    ;12
36
	call	_syslang    ;5
42
	call	_syslang    ;5
37
	call	_keyboard    ;2
43
	call	_keyboard    ;2
38
	call	_mouse_speed
44
	call	_mouse_speed
39
	call	_mouse_delay
45
	call	_mouse_delay
-
 
46
	call	_speaker_mute
40
	ret
47
	ret
41
;-------------------------------------------------------------------------------
48
;-------------------------------------------------------------------------------
42
apply_all_and_exit:
49
apply_all_and_exit:
43
	mcall	70,read_fileinfo
50
	mcall	70,read_fileinfo
44
	call	apply_all
51
	call	apply_all
45
	jmp	close
52
	jmp	close
46
;-------------------------------------------------------------------------------
53
;-------------------------------------------------------------------------------
47
set_language_and_exit:
54
set_language_and_exit:
48
	mcall	26,2,9
55
	mcall	26,2,9
49
	cmp	eax,1
56
	cmp	eax,1
50
	je	russian
57
	je	russian
51
 
58
 
52
	xor	eax,eax
59
	xor	eax,eax
53
;--------------------------------------
60
;--------------------------------------
54
set_lang_now:
61
set_lang_now:
55
	mov	[keyboard],eax
62
	mov	[keyboard],eax
56
	call	_keyboard
63
	call	_keyboard
57
	jmp	close
64
	jmp	close
58
;--------------------------------------
65
;--------------------------------------
59
russian:
66
russian:
60
	mov	eax,3
67
	mov	eax,3
61
	jmp	set_lang_now
68
	jmp	set_lang_now
62
;-------------------------------------------------------------------------------
69
;-------------------------------------------------------------------------------
63
set_syslanguage_and_exit:
70
set_syslanguage_and_exit:
64
	mcall	26,5
71
	mcall	26,5
65
	cmp	eax,6
72
	cmp	eax,6
66
	jne	temp
73
	jne	temp
67
	xor	eax,eax
74
	xor	eax,eax
68
;--------------------------------------
75
;--------------------------------------
69
temp:
76
temp:
70
	inc	eax
77
	inc	eax
71
	mov	[syslang],eax
78
	mov	[syslang],eax
72
	call	_syslang
79
	call	_syslang
73
	jmp	close
80
	jmp	close
74
;-------------------------------------------------------------------------------
81
;-------------------------------------------------------------------------------
75
get_setup_values:
82
get_setup_values:
76
	mcall	26,2,9
83
	mcall	26,2,9
77
	dec	eax
84
	dec	eax
78
	mov	[keyboard],eax
85
	mov	[keyboard],eax
79
 
86
 
80
	mcall	26,5
87
	mcall	26,5
81
	mov	[syslang],eax
88
	mov	[syslang],eax
82
 
89
 
83
	mcall	26,11
90
	mcall	26,11
84
	mov	[lba_read],eax
91
	mov	[lba_read],eax
85
 
92
 
86
	mcall	26,12
93
	mcall	26,12
87
	mov	[pci_acc],eax
94
	mov	[pci_acc],eax
88
 
95
 
89
	mcall	18,19,0
96
	mcall	18,19,0
90
	mov	[mouse_speed],eax
97
	mov	[mouse_speed],eax
91
 
98
 
92
	mcall	18,19,2
99
	mcall	18,19,2
93
	mov	[mouse_delay],eax
100
	mov	[mouse_delay],eax
-
 
101
	
-
 
102
	mcall	18,8,1
-
 
103
	mov	[speaker_mute],eax
94
	ret
104
	ret
95
;-------------------------------------------------------------------------------
105
;-------------------------------------------------------------------------------
96
START:
106
START:
97
	mov	eax,I_PARAM
107
	mov	eax,boot_param
98
	cmp	[eax],dword 'SLAN'
108
	cmp	[eax],dword 'SLAN'
99
	je	set_syslanguage_and_exit
109
	je	set_syslanguage_and_exit
100
 
110
 
101
	cmp	[eax],dword 'LANG'
111
	cmp	[eax],dword 'LANG'
102
	je	set_language_and_exit
112
	je	set_language_and_exit
103
 
113
 
104
	cmp	[eax],dword 'BOOT'
114
	cmp	[eax],dword 'BOOT'
105
	je	apply_all_and_exit
115
	je	apply_all_and_exit
106
 
116
 
107
	call	get_setup_values
117
	call	get_setup_values
108
	call	loadtxt
118
	call	loadtxt
-
 
119
	call	draw_infotext
109
;-------------------------------------------------------------------------------
120
;-------------------------------------------------------------------------------
110
red:
121
red:
111
	call	draw_window
122
	call	draw_window
112
;-------------------------------------------------------------------------------
123
;-------------------------------------------------------------------------------
113
still:
124
still:
114
sysevent:
125
sysevent:
115
	mcall	23,8	      ; wait here for event with timeout
126
	mcall	23,8	      ; wait here for event with timeout
116
	cmp	eax,1
127
	cmp	eax,1
117
	jz	red
128
	jz	red
118
 
129
 
119
	cmp	eax,2
130
	cmp	eax,2
120
	jz	key
131
	jz	key
121
 
132
 
122
	cmp	eax,3
133
	cmp	eax,3
123
	jz	button
134
	jz	button
124
 
135
 
125
	jmp	still
136
	jmp	still
126
;-------------------------------------------------------------------------------
137
;-------------------------------------------------------------------------------
127
key:
138
key:
128
	mcall	2
139
	mcall	2
129
	jmp	still
140
	jmp	still
130
;-------------------------------------------------------------------------------
141
;-------------------------------------------------------------------------------
131
button:
142
button:
132
	mcall	17
143
	mcall	17
133
	cmp	ah,99
144
	cmp	ah,99
134
	jne	nosaveall
145
	jne	nosaveall
135
	mcall	70,save_fileinfo
146
	mcall	70,save_fileinfo
136
	jmp	still
147
	jmp	still
137
;--------------------------------------    
148
;--------------------------------------    
138
nosaveall:
149
nosaveall:
139
	cmp	ah,100
150
	cmp	ah,100
140
	jne	no_apply_all
151
	jne	no_apply_all
141
	call	apply_all
152
	call	apply_all
142
	jmp	still
153
	jmp	still
143
;--------------------------------------
154
;--------------------------------------
144
no_apply_all:
155
no_apply_all:
145
	cmp	ah,1	; CLOSE APPLICATION
156
	cmp	ah,1	; CLOSE APPLICATION
146
	jne	no_close
157
	jne	no_close
147
;--------------------------------------
158
;--------------------------------------
148
close:
159
close:
149
	or	eax,-1
160
	or	eax,-1
150
	mcall
161
	mcall
151
;--------------------------------------
162
;--------------------------------------
152
no_close:
163
no_close:
153
	cmp	ah,4	; SET KEYBOARD
164
	cmp	ah,4	; SET KEYBOARD
154
	jnz	nokm
165
	jnz	nokm
155
	mov	eax,[keyboard]
166
	mov	eax,[keyboard]
156
	test	eax,eax
167
	test	eax,eax
157
	je	downuplbl
168
	je	downuplbl
158
	dec	eax
169
	dec	eax
159
	jmp	nodownup
170
	jmp	nodownup
160
;--------------------------------------
171
;--------------------------------------
161
downuplbl:
172
downuplbl:
162
	mov	eax,5
173
	mov	eax,5
163
;--------------------------------------
174
;--------------------------------------
164
nodownup:
175
nodownup:
165
	mov	[keyboard],eax
176
	mov	[keyboard],eax
166
	call	draw_infotext
177
	call	draw_infotext
167
;--------------------------------------
178
;--------------------------------------
168
nokm:
179
nokm:
169
	cmp	ah,5
180
	cmp	ah,5
170
	jnz	nokp
181
	jnz	nokp
171
	mov	eax,[keyboard]
182
	mov	eax,[keyboard]
172
	cmp	eax,5
183
	cmp	eax,5
173
	je	updownlbl
184
	je	updownlbl
174
	inc	eax
185
	inc	eax
175
	jmp	noupdown
186
	jmp	noupdown
176
;--------------------------------------
187
;--------------------------------------
177
updownlbl:
188
updownlbl:
178
	xor	eax,eax
189
	xor	eax,eax
179
;--------------------------------------
190
;--------------------------------------
180
noupdown:
191
noupdown:
181
	mov	[keyboard],eax
192
	mov	[keyboard],eax
182
	call	draw_infotext
193
	call	draw_infotext
183
;--------------------------------------
194
;--------------------------------------
184
nokp:
195
nokp:
185
	cmp	ah,92	; SET LBA READ
196
	cmp	ah,92	; SET LBA READ
186
	jne	no_lba_d
197
	jne	no_lba_d
187
;--------------------------------------
198
;--------------------------------------
188
slbal:
199
slbal:
189
	btc	[lba_read],0
200
	btc	[lba_read],0
190
	call	draw_infotext
201
	call	draw_infotext
191
	jmp	still
202
	jmp	still
192
;--------------------------------------
203
;--------------------------------------
193
no_lba_d:
204
no_lba_d:
194
	cmp	ah,93
205
	cmp	ah,93
195
	jne	no_lba_i
206
	jne	no_lba_i
196
	jmp	slbal
207
	jmp	slbal
197
;--------------------------------------
208
;--------------------------------------
198
no_lba_i:
209
no_lba_i:
199
	cmp	ah,91
210
	cmp	ah,91
200
	jne	no_set_lba_read
211
	jne	no_set_lba_read
201
	call	_lba_read
212
	call	_lba_read
202
	jmp	still
213
	jmp	still
203
;--------------------------------------
214
;--------------------------------------
204
no_set_lba_read:
215
no_set_lba_read:
205
	cmp	ah,102	; SET PCI ACCESS
216
	cmp	ah,102	; SET PCI ACCESS
206
	jne	no_pci_d
217
	jne	no_pci_d
207
;--------------------------------------
218
;--------------------------------------
208
pcip:
219
pcip:
209
	btc	[pci_acc],0
220
	btc	[pci_acc],0
210
	call	draw_infotext
221
	call	draw_infotext
211
	jmp	still
222
	jmp	still
212
;--------------------------------------
223
;--------------------------------------
213
no_pci_d:
224
no_pci_d:
214
	cmp	ah,103
225
	cmp	ah,103
215
	jne	no_pci_i
226
	jne	no_pci_i
216
	jmp	pcip
227
	jmp	pcip
217
;--------------------------------------
228
;--------------------------------------
218
no_pci_i:
229
no_pci_i:
219
	cmp	ah,101
230
	cmp	ah,101
220
	jne	no_set_pci_acc
231
	jne	no_set_pci_acc
221
	call	_pci_acc
232
	call	_pci_acc
222
	jmp	still
233
	jmp	still
223
;--------------------------------------
234
;--------------------------------------
224
no_set_pci_acc:
235
no_set_pci_acc:
225
	cmp	ah,42	; SET SYSTEM LANGUAGE BASE
236
	cmp	ah,42	; SET SYSTEM LANGUAGE BASE
226
	jnz	nosysm
237
	jnz	nosysm
227
	mov	eax,[syslang]
238
	mov	eax,[syslang]
228
	dec	eax
239
	dec	eax
229
	jz	still
240
	jz	still
230
	mov	[syslang],eax
241
	mov	[syslang],eax
231
	call	draw_infotext
242
	call	draw_infotext
232
;--------------------------------------
243
;--------------------------------------
233
nosysm:
244
nosysm:
234
	cmp	ah,43
245
	cmp	ah,43
235
	jnz	nosysp
246
	jnz	nosysp
236
	mov	eax,[syslang]
247
	mov	eax,[syslang]
237
	cmp	eax,6
248
	cmp	eax,6
238
	je	nosysp
249
	je	nosysp
239
	inc	eax
250
	inc	eax
240
	mov	[syslang],eax
251
	mov	[syslang],eax
241
	call	draw_infotext
252
	call	draw_infotext
242
;--------------------------------------
253
;--------------------------------------
243
nosysp:
254
nosysp:
244
	cmp	ah,41
255
	cmp	ah,41
245
	jnz	nosyss
256
	jnz	nosyss
246
	call	_syslang
257
	call	_syslang
247
	call	cleantxt
258
	call	cleantxt
248
	call	loadtxt
259
	call	loadtxt
249
	call	draw_window
260
	call	draw_window
250
;--------------------------------------
261
;--------------------------------------
251
nosyss:
262
nosyss:
252
	cmp	ah,132	; SET MOUSE SPEED
263
	cmp	ah,132	; SET MOUSE SPEED
253
	jnz	.nominus
264
	jnz	.nominus
254
	mov	eax,[mouse_speed]
265
	mov	eax,[mouse_speed]
255
	sub	eax,2
266
	sub	eax,2
256
	cmp	eax,9
267
	cmp	eax,9
257
	jb	@f
268
	jb	@f
258
	mov	eax,8
269
	mov	eax,8
259
;--------------------------------------
270
;--------------------------------------
260
@@:
271
@@:
261
	inc	eax
272
	inc	eax
262
	mov	[mouse_speed],eax
273
	mov	[mouse_speed],eax
263
	call	draw_infotext
274
	call	draw_infotext
264
;--------------------------------------
275
;--------------------------------------
265
.nominus:
276
.nominus:
266
	cmp	ah,133
277
	cmp	ah,133
267
	jnz	.noplus
278
	jnz	.noplus
268
	mov	eax,[mouse_speed]
279
	mov	eax,[mouse_speed]
269
	cmp	eax,9
280
	cmp	eax,9
270
	jb	@f
281
	jb	@f
271
	mov	eax,0
282
	mov	eax,0
272
;--------------------------------------
283
;--------------------------------------
273
@@:
284
@@:
274
	inc	eax
285
	inc	eax
275
	mov	[mouse_speed],eax
286
	mov	[mouse_speed],eax
276
	call	draw_infotext
287
	call	draw_infotext
277
;--------------------------------------
288
;--------------------------------------
278
.noplus:
289
.noplus:
279
	cmp	ah,131
290
	cmp	ah,131
280
	jnz	.noapply
291
	jnz	.noapply
281
	call	_mouse_speed
292
	call	_mouse_speed
282
;--------------------------------------    
293
;--------------------------------------    
283
.noapply:
294
.noapply:
284
mousedelay:
295
mousedelay:
285
	cmp	ah,142        ; SET MOUSE DELAY
296
	cmp	ah,142        ; SET MOUSE DELAY
286
	jnz	.nominus
297
	jnz	.nominus
287
	mov	eax,[mouse_delay]
298
	mov	eax,[mouse_delay]
288
	sub	eax,2
299
	sub	eax,2
289
	cmp	eax,0xfff
300
	cmp	eax,0xfff
290
	jb	@f
301
	jb	@f
291
	mov	eax,0xffe
302
	mov	eax,0xffe
292
;--------------------------------------
303
;--------------------------------------
293
@@:
304
@@:
294
	inc	eax
305
	inc	eax
295
	mov	[mouse_delay],eax
306
	mov	[mouse_delay],eax
296
	call	draw_infotext
307
	call	draw_infotext
297
;--------------------------------------
308
;--------------------------------------
298
.nominus:
309
.nominus:
299
	cmp	ah,143
310
	cmp	ah,143
300
	jnz	.noplus
311
	jnz	.noplus
301
	mov	eax,[mouse_delay]
312
	mov	eax,[mouse_delay]
302
	cmp	eax,0xfff
313
	cmp	eax,0xfff
303
	jb	@f
314
	jb	@f
304
	mov	eax,0
315
	mov	eax,0
305
;--------------------------------------
316
;--------------------------------------
306
@@:
317
@@:
307
	inc	eax
318
	inc	eax
308
	mov	[mouse_delay],eax
319
	mov	[mouse_delay],eax
309
	call	draw_infotext
320
	call	draw_infotext
310
;--------------------------------------
321
;--------------------------------------
311
.noplus:
322
.noplus:
312
	cmp	ah,141
323
	cmp	ah,141
313
	jnz	.noapply
324
	jnz	speakermute
314
	call	_mouse_delay
325
	call	_mouse_delay
315
;--------------------------------------
326
;--------------------------------------
-
 
327
speakermute:
-
 
328
	cmp	ah,152	; SET SPEAKER
-
 
329
	jne	no_speaker_d
-
 
330
;--------------------------------------
-
 
331
speaker_p:
-
 
332
	btc	[speaker_mute],0
-
 
333
	call	draw_infotext
-
 
334
	jmp	still
-
 
335
;--------------------------------------
-
 
336
no_speaker_d:
-
 
337
	cmp	ah,153
-
 
338
	jne	no_speaker_i
-
 
339
	jmp	speaker_p
-
 
340
;--------------------------------------
-
 
341
no_speaker_i:
-
 
342
	cmp	ah,151
-
 
343
	jne	.noapply
-
 
344
	call	_speaker_mute
-
 
345
	jmp	still
-
 
346
;--------------------------------------
316
.noapply:
347
.noapply:
317
	cmp	ah,3	      ; SET KEYMAP
348
	cmp	ah,3	      ; SET KEYMAP
318
	jne	still
349
	jne	still
319
	call	_keyboard
350
	call	_keyboard
320
	jmp	still
351
	jmp	still
321
;-------------------------------------------------------------------------------
352
;-------------------------------------------------------------------------------
322
_keyboard:
353
_keyboard:
323
	cmp	[keyboard],0	; english
354
	cmp	[keyboard],0	; english
324
	jnz	nosetkeyle
355
	jnz	nosetkeyle
325
	
356
	
326
	mcall	21,2,1,en_keymap
357
	mcall	21,2,1,en_keymap
327
	
358
	
328
	inc	ecx
359
	inc	ecx
329
	mcall	21,,,en_keymap_shift
360
	mcall	21,,,en_keymap_shift
330
 
361
 
331
	mcall	21,,9,1
362
	mcall	21,,9,1
332
	call	alt_gen
363
	call	alt_gen
333
;--------------------------------------
364
;--------------------------------------
334
nosetkeyle:
365
nosetkeyle:
335
	cmp	[keyboard],1	; finnish
366
	cmp	[keyboard],1	; finnish
336
	jnz	nosetkeylfi
367
	jnz	nosetkeylfi
337
 
368
 
338
	mcall	21,2,1,fi_keymap
369
	mcall	21,2,1,fi_keymap
339
	
370
	
340
	inc	ecx
371
	inc	ecx
341
	mcall	21,,,fi_keymap_shift
372
	mcall	21,,,fi_keymap_shift
342
 
373
 
343
	mcall	21,,9,2
374
	mcall	21,,9,2
344
	call	alt_gen
375
	call	alt_gen
345
;--------------------------------------
376
;--------------------------------------
346
nosetkeylfi:
377
nosetkeylfi:
347
	cmp  [keyboard],2	; german
378
	cmp  [keyboard],2	; german
348
	jnz  nosetkeylge
379
	jnz  nosetkeylge
349
 
380
 
350
	mcall	21,2,1,ge_keymap
381
	mcall	21,2,1,ge_keymap
351
	
382
	
352
	inc	ecx
383
	inc	ecx
353
	mcall	21,,,ge_keymap_shift
384
	mcall	21,,,ge_keymap_shift
354
 
385
 
355
	mcall	21,,9,3
386
	mcall	21,,9,3
356
	call	alt_gen
387
	call	alt_gen
357
;--------------------------------------
388
;--------------------------------------
358
nosetkeylge:
389
nosetkeylge:
359
	cmp	[keyboard],3	; russian
390
	cmp	[keyboard],3	; russian
360
	jnz	nosetkeylru
391
	jnz	nosetkeylru
361
    
392
    
362
	mcall	21,2,1,ru_keymap
393
	mcall	21,2,1,ru_keymap
363
	
394
	
364
	inc	ecx
395
	inc	ecx
365
	mcall	21,,,ru_keymap_shift
396
	mcall	21,,,ru_keymap_shift
366
 
397
 
367
	mcall	21,,9,4
398
	mcall	21,,9,4
368
	call	alt_gen
399
	call	alt_gen
369
;--------------------------------------
400
;--------------------------------------
370
nosetkeylru:
401
nosetkeylru:
371
	cmp	[keyboard],4 	;french
402
	cmp	[keyboard],4 	;french
372
	jnz	nosetkeylfr
403
	jnz	nosetkeylfr
373
 
404
 
374
	mcall	21,2,1,fr_keymap
405
	mcall	21,2,1,fr_keymap
375
	
406
	
376
	inc	ecx
407
	inc	ecx
377
	mcall	21,,,fr_keymap_shift
408
	mcall	21,,,fr_keymap_shift
378
 
409
 
379
	inc  ecx
410
	inc  ecx
380
	mcall	21,,,fr_keymap_alt_gr
411
	mcall	21,,,fr_keymap_alt_gr
381
 
412
 
382
	mcall	21,,9,5
413
	mcall	21,,9,5
383
;--------------------------------------
414
;--------------------------------------
384
nosetkeylfr:
415
nosetkeylfr:
385
	cmp	[keyboard],5	; estonian
416
	cmp	[keyboard],5	; estonian
386
	jnz	nosetkeylet
417
	jnz	nosetkeylet
387
 
418
 
388
	mcall	21,2,1,et_keymap
419
	mcall	21,2,1,et_keymap
389
	
420
	
390
	inc	ecx
421
	inc	ecx
391
	mcall	21,,,et_keymap_shift
422
	mcall	21,,,et_keymap_shift
392
 
423
 
393
	mcall	21,,9,6
424
	mcall	21,,9,6
394
	call	alt_gen
425
	call	alt_gen
395
;--------------------------------------
426
;--------------------------------------
396
nosetkeylet:
427
nosetkeylet:
397
	ret
428
	ret
398
;-------------------------------------------------------------------------------
429
;-------------------------------------------------------------------------------
399
alt_gen:
430
alt_gen:
400
	mcall	21,,3,alt_general
431
	mcall	21,,3,alt_general
401
	ret
432
	ret
402
;-------------------------------------------------------------------------------
433
;-------------------------------------------------------------------------------
403
draw_buttons:
434
draw_buttons:
404
	pusha
435
	pusha
405
	shl  ecx,16
436
	shl  ecx,16
406
	add  ecx,12
437
	add  ecx,12
407
	mcall	8,<(350-57),(46+BBB)>
438
	mcall	8,<(350-57),(46+BBB)>
408
 
439
 
409
	inc	edx
440
	inc	edx
410
	mcall	,<(350-85),9>
441
	mcall	,<(350-85),9>
411
 
442
 
412
	inc	edx
443
	inc	edx
413
	mcall	,<(350-73),9>
444
	mcall	,<(350-73),9>
414
 
445
 
415
	popa
446
	popa
416
	ret
447
	ret
417
;-------------------------------------------------------------------------------
448
;-------------------------------------------------------------------------------
418
; ********************************************
449
; ********************************************
419
; ******* WINDOW DEFINITIONS AND DRAW  *******
450
; ******* WINDOW DEFINITIONS AND DRAW  *******
420
; ********************************************
451
; ********************************************
421
draw_window:
452
draw_window:
422
	pusha
453
	pusha
423
	mcall	12,1
454
	mcall	12,1
424
 
455
 
425
	xor	eax,eax       ; DRAW WINDOW
456
	xor	eax,eax       ; DRAW WINDOW
426
	xor	esi,esi
457
	xor	esi,esi
427
	mcall	,<40,(355+BBB)>,<40,(12*15)>,0xB4111199,,title
458
	mcall	,<40,(355+BBB)>,<40,(12*16)>,0xB4111199,,title
428
	
459
	
429
	mcall	9,procinfo,-1
460
	mcall	9,procinfo,-1
430
	
461
	
431
	mov	eax,[ebx+70] ;status of window
462
	mov	eax,[ebx+70] ;status of window
432
	test	eax,100b
463
	test	eax,100b
433
	jne	.end
464
	jne	.end
434
 
465
 
435
	mcall	8,<(350-85),100>,<(5+14*8),12>,100,0x005588dd	; APPLY ALL
466
	mcall	8,<(350-85),100>,<(5+16*8),12>,100,0x005588dd	; APPLY ALL
436
 
467
 
437
	add	ecx,16*65536	      ; SAVE ALL
468
	add	ecx,16*65536	      ; SAVE ALL
438
	dec	edx
469
	dec	edx
439
	mcall
470
	mcall
440
 
471
 
441
	mov	esi,0x5580c0
472
	mov	esi,0x5580c0
442
 
473
 
443
	mov	edx,41
474
	mov	edx,41
444
	mov	ecx,5+0*8
475
	mov	ecx,5+0*8
445
	call	draw_buttons
476
	call	draw_buttons
446
 
477
 
447
	mov	edx,3
478
	mov	edx,3
448
	mov	ecx,5+2*8
479
	mov	ecx,5+2*8
449
	call	draw_buttons
480
	call	draw_buttons
450
 
481
 
451
	mov	edx,91
482
	mov	edx,91
452
	mov	ecx,5+4*8
483
	mov	ecx,5+4*8
453
	call	draw_buttons
484
	call	draw_buttons
454
 
485
 
455
	mov	edx,101
486
	mov	edx,101
456
	mov	ecx,5+6*8
487
	mov	ecx,5+6*8
457
	call	draw_buttons
488
	call	draw_buttons
458
 
489
 
459
	mov	edx,131
490
	mov	edx,131
460
	mov	ecx,5+8*8
491
	mov	ecx,5+8*8
461
	call	draw_buttons
492
	call	draw_buttons
462
 
493
 
463
	mov	edx,141
494
	mov	edx,141
464
	mov	ecx,5+10*8
495
	mov	ecx,5+10*8
465
	call	draw_buttons
496
	call	draw_buttons
-
 
497
	
-
 
498
	mov	edx,151
-
 
499
	mov	ecx,5+12*8
-
 
500
	call	draw_buttons
466
 
501
 
467
	call	draw_infotext
502
	call	draw_infotext
468
.end:
503
.end:
469
	mcall	12,2
504
	mcall	12,2
470
	popa
505
	popa
471
	ret
506
	ret
472
;-------------------------------------------------------------------------------
507
;-------------------------------------------------------------------------------
473
draw_infotext:
508
draw_infotext:
474
	pusha
509
	pusha
475
	mov	eax,[keyboard]       ; KEYBOARD
510
	mov	eax,[keyboard]       ; KEYBOARD
476
	test	eax,eax
511
	test	eax,eax
477
	jnz	noen
512
	jnz	noen
478
	mov	[text00+LLL*1+28],dword 'ENGL'
513
	mov	[text00+LLL*1+28],dword 'ENGL'
479
	mov	[text00+LLL*1+32],dword 'ISH '
514
	mov	[text00+LLL*1+32],dword 'ISH '
480
;--------------------------------------
515
;--------------------------------------
481
noen:
516
noen:
482
	cmp	eax,1
517
	cmp	eax,1
483
	jnz	nofi
518
	jnz	nofi
484
	mov	[text00+LLL*1+28],dword 'FINN'
519
	mov	[text00+LLL*1+28],dword 'FINN'
485
	mov	[text00+LLL*1+32],dword 'ISH '
520
	mov	[text00+LLL*1+32],dword 'ISH '
486
;--------------------------------------
521
;--------------------------------------
487
nofi:
522
nofi:
488
	cmp	eax,2
523
	cmp	eax,2
489
	jnz	noge
524
	jnz	noge
490
	mov	[text00+LLL*1+28],dword 'GERM'
525
	mov	[text00+LLL*1+28],dword 'GERM'
491
	mov	[text00+LLL*1+32],dword 'AN  '
526
	mov	[text00+LLL*1+32],dword 'AN  '
492
;--------------------------------------
527
;--------------------------------------
493
noge:
528
noge:
494
	cmp	eax,3
529
	cmp	eax,3
495
	jnz	nogr
530
	jnz	nogr
496
	mov	[text00+LLL*1+28],dword 'RUSS'
531
	mov	[text00+LLL*1+28],dword 'RUSS'
497
	mov	[text00+LLL*1+32],dword 'IAN '
532
	mov	[text00+LLL*1+32],dword 'IAN '
498
;--------------------------------------
533
;--------------------------------------
499
nogr:
534
nogr:
500
	cmp	eax,4
535
	cmp	eax,4
501
	jnz	nofr
536
	jnz	nofr
502
	mov	[text00+LLL*1+28],dword 'FREN'
537
	mov	[text00+LLL*1+28],dword 'FREN'
503
	mov	[text00+LLL*1+32],dword 'CH  '
538
	mov	[text00+LLL*1+32],dword 'CH  '
504
;--------------------------------------
539
;--------------------------------------
505
nofr:
540
nofr:
506
	cmp	eax,5
541
	cmp	eax,5
507
	jnz	noet
542
	jnz	noet
508
	mov	[text00+LLL*1+28],dword 'ESTO'
543
	mov	[text00+LLL*1+28],dword 'ESTO'
509
	mov	[text00+LLL*1+32],dword 'NIAN'
544
	mov	[text00+LLL*1+32],dword 'NIAN'
510
;--------------------------------------
545
;--------------------------------------
511
noet:
546
noet:
512
	mov	eax,[syslang]		  ; SYSTEM LANGUAGE
547
	mov	eax,[syslang]		  ; SYSTEM LANGUAGE
513
	dec	eax
548
	dec	eax
514
	test	eax,eax
549
	test	eax,eax
515
	jnz	noen5
550
	jnz	noen5
516
	mov	[text00+LLL*0+28],dword 'ENGL'
551
	mov	[text00+LLL*0+28],dword 'ENGL'
517
	mov	[text00+LLL*0+32],dword 'ISH '
552
	mov	[text00+LLL*0+32],dword 'ISH '
518
;--------------------------------------
553
;--------------------------------------
519
noen5:
554
noen5:
520
	cmp	eax,1
555
	cmp	eax,1
521
	jnz	nofi5
556
	jnz	nofi5
522
	mov	[text00+LLL*0+28],dword 'FINN'
557
	mov	[text00+LLL*0+28],dword 'FINN'
523
	mov	[text00+LLL*0+32],dword 'ISH '
558
	mov	[text00+LLL*0+32],dword 'ISH '
524
;--------------------------------------
559
;--------------------------------------
525
nofi5:
560
nofi5:
526
	cmp	eax,2
561
	cmp	eax,2
527
	jnz	noge5
562
	jnz	noge5
528
	mov	[text00+LLL*0+28],dword 'GERM'
563
	mov	[text00+LLL*0+28],dword 'GERM'
529
	mov	[text00+LLL*0+32],dword 'AN  '
564
	mov	[text00+LLL*0+32],dword 'AN  '
530
;--------------------------------------
565
;--------------------------------------
531
noge5:
566
noge5:
532
	cmp	eax,3
567
	cmp	eax,3
533
	jnz	nogr5
568
	jnz	nogr5
534
	mov	[text00+LLL*0+28],dword 'RUSS'
569
	mov	[text00+LLL*0+28],dword 'RUSS'
535
	mov	[text00+LLL*0+32],dword 'IAN '
570
	mov	[text00+LLL*0+32],dword 'IAN '
536
;--------------------------------------
571
;--------------------------------------
537
nogr5:
572
nogr5:
538
	cmp	eax,4
573
	cmp	eax,4
539
	jne	nofr5
574
	jne	nofr5
540
	mov	[text00+LLL*0+28],dword 'FREN'
575
	mov	[text00+LLL*0+28],dword 'FREN'
541
	mov	[text00+LLL*0+32],dword 'CH  '
576
	mov	[text00+LLL*0+32],dword 'CH  '
542
;--------------------------------------
577
;--------------------------------------
543
nofr5:
578
nofr5:
544
	cmp	eax,5
579
	cmp	eax,5
545
	jne	noet5
580
	jne	noet5
546
	mov	[text00+LLL*0+28],dword 'ESTO'
581
	mov	[text00+LLL*0+28],dword 'ESTO'
547
	mov	[text00+LLL*0+32],dword 'NIAN'
582
	mov	[text00+LLL*0+32],dword 'NIAN'
548
;--------------------------------------
583
;--------------------------------------
549
noet5:
584
noet5:
550
	mov	eax,[lba_read]
585
	mov	eax,[lba_read]
551
	call	onoff				; LBA READ
586
	call	onoff				; LBA READ
552
	mov	[text00+LLL*2+28],ebx
587
	mov	[text00+LLL*2+28],ebx
553
 
588
 
554
	mov	eax,[pci_acc]
589
	mov	eax,[pci_acc]
555
	call	onoff				; PCI ACCESS
590
	call	onoff				; PCI ACCESS
556
	mov	[text00+LLL*3+28],ebx
591
	mov	[text00+LLL*3+28],ebx
-
 
592
	
-
 
593
	mov	eax,[speaker_mute]
-
 
594
	call	onoff				; SPEAKER
-
 
595
	mov	[text00+LLL*6+28],ebx
557
 
596
 
558
	mov	eax,[mouse_speed]		; MOUSE SPEED
597
	mov	eax,[mouse_speed]		; MOUSE SPEED
559
	add	al,48
598
	add	al,48
560
	mov	[text00+LLL*4+28],al
599
	mov	[text00+LLL*4+28],al
561
 
600
 
562
	mov	eax,[mouse_delay]
601
	mov	eax,[mouse_delay]
563
	mov	esi,text00+LLL*5+32
602
	mov	esi,text00+LLL*5+32
564
	call	hexconvert			; MOUSE DELAY
603
	call	hexconvert			; MOUSE DELAY
565
	call	text_out
604
	call	text_out
-
 
605
	
566
	popa
606
	popa
567
	ret
607
	ret
568
;-------------------------------------------------------------------------------
608
;-------------------------------------------------------------------------------
569
text_out:
609
text_out:
570
	mcall	13,<165,85>,<0,(12*8)>,0x80111199	;0x80111199-19
610
	mcall	13,<165,85>,<0,(14*8)>,0x80111199	;0x80111199-19
571
 
611
 
572
	mov	edx,text00
612
	mov	edx,text00
573
	mov	ebx,3*65536+7
613
	mov	ebx,3*65536+7
574
	mov	eax,4
614
	mov	eax,4
575
	mov	ecx,0xffffff
615
	mov	ecx,0xffffff
576
	mov	esi,LLL
616
	mov	esi,LLL
577
	mov	ebp,text1_strings
617
	mov	ebp,text1_strings
578
;--------------------------------------
618
;--------------------------------------
579
newline:
619
newline:
580
	mcall
620
	mcall
581
	add	ebx,8+8
621
	add	ebx,8+8
582
	add	edx,esi
622
	add	edx,esi
583
	dec	ebp
623
	dec	ebp
584
	jnz	newline
624
	jnz	newline
585
 
625
 
586
	mov	ebp,text2_strings
626
	mov	ebp,text2_strings
587
	add	ebx,8+8
627
	add	ebx,8+8
588
;--------------------------------------
628
;--------------------------------------
589
@@:
629
@@:
590
	mcall
630
	mcall
591
	add	ebx,8+8
631
	add	ebx,8+8
592
	add	edx,esi
632
	add	edx,esi
593
	dec	ebp
633
	dec	ebp
594
	jnz	@b
634
	jnz	@b
595
	ret
635
	ret
596
;-------------------------------------------------------------------------------
636
;-------------------------------------------------------------------------------
597
hexconvert:	     ;converting dec to hex in ascii
637
hexconvert:	     ;converting dec to hex in ascii
598
	xor	ebx,ebx
638
	xor	ebx,ebx
599
	mov	bl,al
639
	mov	bl,al
600
	and	bl,15
640
	and	bl,15
601
	add	ebx,hex
641
	add	ebx,hex
602
	mov	cl,[ebx]
642
	mov	cl,[ebx]
603
	mov	[esi],cl
643
	mov	[esi],cl
604
	shr	eax,4
644
	shr	eax,4
605
	xor	ebx,ebx
645
	xor	ebx,ebx
606
	mov	bl,al
646
	mov	bl,al
607
	and	bl,15
647
	and	bl,15
608
	add	ebx,hex
648
	add	ebx,hex
609
	mov	cl,[ebx]
649
	mov	cl,[ebx]
610
	dec	esi
650
	dec	esi
611
	mov	[esi],cl
651
	mov	[esi],cl
612
	shr	eax,4
652
	shr	eax,4
613
	xor	ebx,ebx
653
	xor	ebx,ebx
614
	mov	bl,al
654
	mov	bl,al
615
	and	bl,15
655
	and	bl,15
616
	add	ebx,hex
656
	add	ebx,hex
617
	mov	cl,[ebx]
657
	mov	cl,[ebx]
618
	dec	esi
658
	dec	esi
619
	mov	[esi],cl
659
	mov	[esi],cl
620
	ret
660
	ret
621
;-------------------------------------------------------------------------------
661
;-------------------------------------------------------------------------------
622
onoff:
662
onoff:
623
	cmp	[syslang],4
663
	cmp	[syslang],4
624
	jne	norus1
664
	jne	norus1
625
	mov	ebx,'„€  '
665
	mov	ebx,'„€  '
626
	cmp	eax,1
666
	cmp	eax,1
627
	je	exitsub
667
	je	exitsub
628
	mov	ebx,'…’ '
668
	mov	ebx,'…’ '
629
	ret
669
	ret
630
;--------------------------------------
670
;--------------------------------------
631
norus1:
671
norus1:
632
	mov	ebx,'ON  '
672
	mov	ebx,'ON  '
633
	cmp	eax,1
673
	cmp	eax,1
634
	je	exitsub
674
	je	exitsub
635
	mov	ebx,'OFF '
675
	mov	ebx,'OFF '
636
;--------------------------------------
676
;--------------------------------------
637
exitsub:
677
exitsub:
638
	ret
678
	ret
639
;-------------------------------------------------------------------------------
679
;-------------------------------------------------------------------------------
640
_lba_read:
680
_lba_read:
641
	mcall	21,11,[lba_read]
681
	mcall	21,11,[lba_read]
642
	ret
682
	ret
643
;-------------------------------------------------------------------------------
683
;-------------------------------------------------------------------------------
644
_pci_acc:
684
_pci_acc:
645
	mcall	21,12,[pci_acc]
685
	mcall	21,12,[pci_acc]
646
	ret
686
	ret
647
;-------------------------------------------------------------------------------
687
;-------------------------------------------------------------------------------
648
_syslang:
688
_syslang:
649
	mcall	21,5,[syslang]
689
	mcall	21,5,[syslang]
650
	ret
690
	ret
651
;-------------------------------------------------------------------------------
691
;-------------------------------------------------------------------------------
652
_mouse_speed:
692
_mouse_speed:
653
	mcall	18,19,1,[mouse_speed]
693
	mcall	18,19,1,[mouse_speed]
654
	ret
694
	ret
655
;-------------------------------------------------------------------------------
695
;-------------------------------------------------------------------------------
656
_mouse_delay:
696
_mouse_delay:
657
	mcall	18,19,3,[mouse_delay]
697
	mcall	18,19,3,[mouse_delay]
658
	ret
698
	ret
659
;-------------------------------------------------------------------------------
699
;-------------------------------------------------------------------------------
-
 
700
_speaker_mute:
-
 
701
	mcall	18,8,1
-
 
702
	cmp	[speaker_mute],eax
-
 
703
	je	@f
-
 
704
	inc	ecx
-
 
705
	mcall	18
-
 
706
;--------------------------------------	
-
 
707
@@:
-
 
708
	ret
-
 
709
;-------------------------------------------------------------------------------
660
loadtxt:
710
loadtxt:
661
	mov	edi,text00
711
	mov	edi,text00
662
	mov	ecx,LLL*(text1_strings + text2_strings)/4
712
	mov	ecx,LLL*(text1_strings + text2_strings)/4+1
663
	cmp	[syslang],4
713
	cmp	[syslang],4
664
	jne	norus
714
	jne	norus
665
 
715
 
666
	mov	esi,textrus
716
	mov	esi,textrus
667
	jmp	sload
717
	jmp	sload
668
;--------------------------------------
718
;--------------------------------------
669
norus:
719
norus:
670
	mov	esi,texteng
720
	mov	esi,texteng
671
;--------------------------------------
721
;--------------------------------------
672
sload:
722
sload:
673
	rep	movsd
723
	rep	movsd
674
	ret
724
	ret
675
;-------------------------------------------------------------------------------
725
;-------------------------------------------------------------------------------
676
cleantxt:
726
cleantxt:
677
	xor	eax,eax
727
	xor	eax,eax
678
	mov	ecx,LLL*(text1_strings + text2_strings)/4
728
	mov	ecx,LLL*(text1_strings + text2_strings)/4
679
	cld
729
	cld
680
	mov	edi,text00
730
	mov	edi,text00
681
	rep	stosd
731
	rep	stosd
682
	mov	[text00+1711],byte 'x'
732
	mov	[text00+1711],byte 'x'
683
	ret
733
	ret
684
;-------------------------------------------------------------------------------
734
;-------------------------------------------------------------------------------
685
; DATA AREA
735
; DATA AREA
686
count:		db 0x0
736
count:		db 0x0
687
blinkpar:	dd 0x0
737
blinkpar:	dd 0x0
688
time:		dw 0x0
738
time:		dw 0x0
689
date:		dd 0x0
739
date:		dd 0x0
690
;-------------------------------------------------------------------------------
740
;-------------------------------------------------------------------------------
691
textrus:
741
textrus:
692
	db 'Ÿ§ëª á¨áâ¥¬ë              : ENGLISH         - +   à¨¬¥­¨âì'
742
	db 'Ÿ§ëª á¨áâ¥¬ë              : ENGLISH         - +   à¨¬¥­¨âì'
693
	db ' áª« ¤ª  ª« ¢¨ âãàë      : ENGLISH         - +   à¨¬¥­¨âì'
743
	db ' áª« ¤ª  ª« ¢¨ âãàë      : ENGLISH         - +   à¨¬¥­¨âì'
694
	db '‚ª«îç¨âì LBA              : OFF             - +   à¨¬¥­¨âì'
744
	db '‚ª«îç¨âì LBA              : OFF             - +   à¨¬¥­¨âì'
695
	db '„®áâ㯠ª 設¥ PCI         : OFF             - +   à¨¬¥­¨âì'
745
	db '„®áâ㯠ª 設¥ PCI         : OFF             - +   à¨¬¥­¨âì'
696
	db '‘ª®à®áâì ªãàá®à  ¬ëè¨     : 1               - +   à¨¬¥­¨âì'
746
	db '‘ª®à®áâì ªãàá®à  ¬ëè¨     : 1               - +   à¨¬¥­¨âì'
697
	db '‡ ¤¥à¦ª  ã᪮७¨ï ¬ëè¨   : 0x00a           - +   à¨¬¥­¨âì'
747
	db '‡ ¤¥à¦ª  ã᪮७¨ï ¬ëè¨   : 0x00a           - +   à¨¬¥­¨âì'
-
 
748
	db '‚몫îç¨âì SPEAKER         : OFF             - +   à¨¬¥­¨âì'
698
	
749
	
699
	db '‚ˆŒ€ˆ…:                                    à¨¬¥­¨âì ¢á¥ '
750
	db '‚ˆŒ€ˆ…:                                    à¨¬¥­¨âì ¢á¥ '
700
	db '… ‡€“„œ’… ‘Ž•€ˆ’œ €‘’Ž‰Šˆ              ‘®åà ­¨âì ¢á¥ '
751
	db '… ‡€“„œ’… ‘Ž•€ˆ’œ €‘’Ž‰Šˆ              ‘®åà ­¨âì ¢á¥ '
701
;-------------------------------------------------------------------------------
752
;-------------------------------------------------------------------------------
702
texteng:
753
texteng:
703
	db 'SYSTEM LANGUAGE           : ENGLISH         - +     APPLY  '
754
	db 'System language           : ENGLISH         - +     Apply  '
704
	db 'KEYBOARD LAYOUT           : ENGLISH         - +     APPLY  '
755
	db 'Keyboard layout           : ENGLISH         - +     Apply  '
705
	db 'LBA READ ENABLED          : OFF             - +     APPLY  '
756
	db 'LBA read enabled          : OFF             - +     Apply  '
706
	db 'PCI ACCESS FOR APPL.      : OFF             - +     APPLY  '
757
	db 'PCI access for appl.      : OFF             - +     Apply  '
707
	db 'Mouse pointer speed       : 1               - +     APPLY  '
758
	db 'Mouse pointer speed       : 1               - +     Apply  '
708
	db 'Mouse pointer delay       : 0x00a           - +     APPLY  '
759
	db 'Mouse pointer delay       : 0x00a           - +     Apply  '
-
 
760
	db 'SPEAKER disabled          : OFF             - +     Apply  '
709
text1_strings = 6
761
text1_strings = 7
710
 
762
 
711
	db 'NOTE:                                           APPLY ALL  '
763
	db 'NOTE:                                           Apply all  '
712
	db 'SAVE YOUR SETTINGS BEFORE QUITING KOLIBRI       SAVE ALL   '
764
	db 'SAVE YOUR SETTINGS BEFORE QUITING KOLIBRI       Save all   '
713
text2_strings = 2
765
text2_strings = 2
714
;-------------------------------------------------------------------------------
766
;-------------------------------------------------------------------------------
715
title	db 'System setup',0
767
title	db 'System setup',0
716
 
768
 
717
hex	db '0123456789ABCDEF'
769
hex	db '0123456789ABCDEF'
718
;-------------------------------------------------------------------------------
770
;-------------------------------------------------------------------------------
719
include 'keymaps.inc'
771
include 'keymaps.inc'
720
;-------------------------------------------------------------------------------
772
;-------------------------------------------------------------------------------
721
read_fileinfo:
773
read_fileinfo:
722
	dd 0
774
	dd 0
723
	dd 0
775
	dd 0
724
	dd 0
776
	dd 0
725
	dd 48
777
	dd 28
726
	dd keyboard
778
	dd keyboard
727
	db 0
779
	db 0
728
	dd file_name
780
	dd file_name
729
;-------------------------------------------------------------------------------
781
;-------------------------------------------------------------------------------
730
save_fileinfo:
782
save_fileinfo:
731
	dd 2
783
	dd 2
732
	dd 0
784
	dd 0
733
	dd 0
785
	dd 0
734
	dd 48
786
	dd 28
735
	dd keyboard
787
	dd keyboard
736
file_name:	db '/sys/setup.dat',0
788
file_name:	db '/sys/setup.dat',0
737
;-------------------------------------------------------------------------------
789
;-------------------------------------------------------------------------------
738
; Note to SVN revision 2299 - some parameters has not used,
-
 
739
; but keep the order of the parameter has always needed!
-
 
740
keyboard	dd 0x0
790
keyboard	dd 0x0
741
		dd 0	;midibase  - not use, but retained for backward compat.
-
 
742
		dd 0	;cdbase - not use, but retained for backward compat.
-
 
743
		dd 0	;sb16 - not use, but retained for backward compat.
-
 
744
syslang		dd 0x1
791
syslang		dd 0x4	; 4 - rus
745
		dd 0	;hdbase - not use, but retained for backward compat.
-
 
746
		dd 0	;f32p - not use, but retained for backward compat.
-
 
747
		dd 0	;sound_dma - not use, but retained for backward compat.
-
 
748
lba_read	dd 0x1
792
lba_read	dd 0x1
749
pci_acc		dd 0x1
793
pci_acc		dd 0x1
750
mouse_speed	dd 0x3
794
mouse_speed	dd 0x2
751
mouse_delay	dd 0x10
795
mouse_delay	dd 0xa
-
 
796
speaker_mute	dd 0	; 0 - enable, 1 - disable
752
;-----------------------------------------------------------------------------
797
;-----------------------------------------------------------------------------
753
IM_END:
798
IM_END:
754
;-----------------------------------------------------------------------------
799
;-----------------------------------------------------------------------------
755
align 4
800
align 4
756
text00:
801
text00:
757
	rb LLL*(text1_strings + text2_strings)
802
	rb LLL*(text1_strings + text2_strings)+4
758
;-----------------------------------------------------------------------------
803
;-----------------------------------------------------------------------------
759
align 4
804
align 4
760
I_PARAM:
805
boot_param:
761
procinfo:
806
procinfo:
762
	rb 1024
807
	rb 1024
763
;-----------------------------------------------------------------------------
808
;-----------------------------------------------------------------------------
764
align 4
809
align 4
765
	rb 0x1000
810
	rb 0x1000
766
stack_area:
811
stack_area:
767
;-----------------------------------------------------------------------------
812
;-----------------------------------------------------------------------------
768
I_END:
813
I_END:
769
;-------------------------------------------------------------------------------
814
;-------------------------------------------------------------------------------