Rev 4825 | Rev 5854 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4825 | Rev 5632 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; DEVICE SETUP ;; |
3 | ;; DEVICE SETUP ;; |
4 | ;; ;; |
4 | ;; ;; |
5 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
5 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
- | 6 | ; version: 1.17 |
|
- | 7 | ; last update: 30/07/2015 |
|
- | 8 | ; changed by: Kiril Lipatov, aka Leency |
|
- | 9 | ; changes: Mouse speed and mouse delay options moved to mouse_cfg |
|
- | 10 | ;--------------------------------------------------------------------- |
|
6 | ; version: 1.16 |
11 | ; version: 1.16 |
7 | ; last update: 12/04/2014 |
12 | ; last update: 12/04/2014 |
8 | ; changed by: Yurii Shevtsov, aka gtament |
13 | ; changed by: Yurii Shevtsov, aka gtament |
9 | ; changes: Fixed junk draw at the bottom of window |
14 | ; changes: Fixed junk draw at the bottom of window |
10 | ;--------------------------------------------------------------------- |
15 | ;--------------------------------------------------------------------- |
Line 46... | Line 51... | ||
46 | ;------------------------------------------------------------------------------- |
51 | ;------------------------------------------------------------------------------- |
47 | apply_all: |
52 | apply_all: |
48 | call _pci_acc ;12 |
53 | call _pci_acc ;12 |
49 | call _syslang ;5 |
54 | call _syslang ;5 |
50 | call _keyboard ;2 |
55 | call _keyboard ;2 |
51 | call _mouse_speed |
- | |
52 | call _mouse_delay |
- | |
53 | call _speaker_mute |
56 | call _speaker_mute |
54 | ret |
57 | ret |
55 | ;------------------------------------------------------------------------------- |
58 | ;------------------------------------------------------------------------------- |
56 | apply_all_and_exit: |
59 | apply_all_and_exit: |
57 | mcall 70,read_fileinfo |
60 | mcall 70,read_fileinfo |
Line 98... | Line 101... | ||
98 | mov [lba_read],eax |
101 | mov [lba_read],eax |
Line 99... | Line 102... | ||
99 | 102 | ||
100 | mcall 26,12 |
103 | mcall 26,12 |
Line 101... | Line -... | ||
101 | mov [pci_acc],eax |
- | |
102 | - | ||
103 | mcall 18,19,0 |
- | |
104 | mov [mouse_speed],eax |
- | |
105 | - | ||
106 | mcall 18,19,2 |
- | |
107 | mov [mouse_delay],eax |
104 | mov [pci_acc],eax |
108 | 105 | ||
109 | mcall 18,8,1 |
106 | mcall 18,8,1 |
110 | mov [speaker_mute],eax |
107 | mov [speaker_mute],eax |
111 | ret |
108 | ret |
Line 265... | Line 262... | ||
265 | call cleantxt |
262 | call cleantxt |
266 | call loadtxt |
263 | call loadtxt |
267 | call draw_window |
264 | call draw_window |
268 | ;-------------------------------------- |
265 | ;-------------------------------------- |
269 | nosyss: |
266 | nosyss: |
270 | cmp ah,132 ; SET MOUSE SPEED |
- | |
271 | jnz .nominus |
- | |
272 | mov eax,[mouse_speed] |
- | |
273 | sub eax,2 |
- | |
274 | cmp eax,9 |
- | |
275 | jb @f |
- | |
276 | mov eax,8 |
- | |
277 | ;-------------------------------------- |
- | |
278 | @@: |
- | |
279 | inc eax |
- | |
280 | mov [mouse_speed],eax |
- | |
281 | call draw_infotext |
- | |
282 | ;-------------------------------------- |
- | |
283 | .nominus: |
- | |
284 | cmp ah,133 |
- | |
285 | jnz .noplus |
- | |
286 | mov eax,[mouse_speed] |
- | |
287 | cmp eax,9 |
- | |
288 | jb @f |
- | |
289 | mov eax,0 |
- | |
290 | ;-------------------------------------- |
- | |
291 | @@: |
- | |
292 | inc eax |
- | |
293 | mov [mouse_speed],eax |
- | |
294 | call draw_infotext |
- | |
295 | ;-------------------------------------- |
- | |
296 | .noplus: |
- | |
297 | cmp ah,131 |
- | |
298 | jnz .noapply |
- | |
299 | call _mouse_speed |
- | |
300 | ;-------------------------------------- |
- | |
301 | .noapply: |
- | |
302 | mousedelay: |
- | |
303 | cmp ah,142 ; SET MOUSE DELAY |
- | |
304 | jnz .nominus |
- | |
305 | mov eax,[mouse_delay] |
- | |
306 | sub eax,2 |
- | |
307 | cmp eax,0xfff |
- | |
308 | jb @f |
- | |
309 | mov eax,0xffe |
- | |
310 | ;-------------------------------------- |
- | |
311 | @@: |
- | |
312 | inc eax |
- | |
313 | mov [mouse_delay],eax |
- | |
314 | call draw_infotext |
- | |
315 | ;-------------------------------------- |
- | |
316 | .nominus: |
- | |
317 | cmp ah,143 |
- | |
318 | jnz .noplus |
- | |
319 | mov eax,[mouse_delay] |
- | |
320 | cmp eax,0xfff |
- | |
321 | jb @f |
- | |
322 | mov eax,0 |
- | |
323 | ;-------------------------------------- |
- | |
324 | @@: |
- | |
325 | inc eax |
- | |
326 | mov [mouse_delay],eax |
- | |
327 | call draw_infotext |
- | |
328 | ;-------------------------------------- |
- | |
329 | .noplus: |
- | |
330 | cmp ah,141 |
- | |
331 | jnz speakermute |
- | |
332 | call _mouse_delay |
- | |
333 | ;-------------------------------------- |
267 | ;-------------------------------------- |
334 | speakermute: |
268 | speakermute: |
335 | cmp ah,152 ; SET SPEAKER |
269 | cmp ah,152 ; SET SPEAKER |
336 | jne no_speaker_d |
270 | jne no_speaker_d |
337 | ;-------------------------------------- |
271 | ;-------------------------------------- |
Line 487... | Line 421... | ||
487 | ; ******************************************** |
421 | ; ******************************************** |
488 | draw_window: |
422 | draw_window: |
489 | pusha |
423 | pusha |
490 | mcall 12,1 |
424 | mcall 12,1 |
Line 491... | Line -... | ||
491 | - | ||
492 | xor eax,eax ; DRAW WINDOW |
- | |
493 | xor esi,esi |
425 | |
Line 494... | Line 426... | ||
494 | mcall ,<40,(355+BBB)>,<40,(12*16)>,0xB4111199,,title |
426 | mcall 0,<40,(355+BBB)>,<40,(10*16)>,0xB4111199,0,title ; DRAW WINDOW |
Line 495... | Line 427... | ||
495 | 427 | ||
496 | mcall 9,procinfo,-1 |
428 | mcall 9,procinfo,-1 |
497 | 429 | ||
Line 498... | Line 430... | ||
498 | mov eax,[ebx+70] ;status of window |
430 | mov eax,[ebx+70] ;status of window |
Line 499... | Line 431... | ||
499 | test eax,100b |
431 | test eax,100b |
500 | jne .end |
432 | jne .end |
501 | 433 | ||
Line 521... | Line 453... | ||
521 | 453 | ||
522 | mov edx,101 |
454 | mov edx,101 |
523 | mov ecx,5+6*8 |
455 | mov ecx,5+6*8 |
Line 524... | Line -... | ||
524 | call draw_buttons |
- | |
525 | - | ||
526 | mov edx,131 |
- | |
527 | mov ecx,5+8*8 |
- | |
528 | call draw_buttons |
- | |
529 | - | ||
530 | mov edx,141 |
- | |
531 | mov ecx,5+10*8 |
- | |
532 | call draw_buttons |
456 | call draw_buttons |
533 | 457 | ||
534 | mov edx,151 |
458 | mov edx,151 |
Line 535... | Line 459... | ||
535 | mov ecx,5+12*8 |
459 | mov ecx,5+8*8 |
536 | call draw_buttons |
460 | call draw_buttons |
537 | 461 | ||
Line 638... | Line 562... | ||
638 | call onoff ; PCI ACCESS |
562 | call onoff ; PCI ACCESS |
639 | mov [text00+LLL*3+28],ebx |
563 | mov [text00+LLL*3+28],ebx |
Line 640... | Line 564... | ||
640 | 564 | ||
641 | mov eax,[speaker_mute] |
565 | mov eax,[speaker_mute] |
642 | call onoff ; SPEAKER |
566 | call onoff ; SPEAKER |
Line 643... | Line -... | ||
643 | mov [text00+LLL*6+28],ebx |
- | |
644 | - | ||
645 | mov eax,[mouse_speed] ; MOUSE SPEED |
- | |
646 | add al,48 |
- | |
647 | mov [text00+LLL*4+28],al |
- | |
648 | - | ||
649 | mov eax,[mouse_delay] |
- | |
650 | mov esi,text00+LLL*5+32 |
567 | mov [text00+LLL*4+28],ebx |
Line 651... | Line 568... | ||
651 | call hexconvert ; MOUSE DELAY |
568 | |
652 | call text_out |
569 | call text_out |
653 | 570 | ||
Line 680... | Line 597... | ||
680 | add edx,esi |
597 | add edx,esi |
681 | dec ebp |
598 | dec ebp |
682 | jnz @b |
599 | jnz @b |
683 | ret |
600 | ret |
684 | ;------------------------------------------------------------------------------- |
601 | ;------------------------------------------------------------------------------- |
685 | hexconvert: ;converting dec to hex in ascii |
- | |
686 | xor ebx,ebx |
- | |
687 | mov bl,al |
- | |
688 | and bl,15 |
- | |
689 | add ebx,hex |
- | |
690 | mov cl,[ebx] |
- | |
691 | mov [esi],cl |
- | |
692 | shr eax,4 |
- | |
693 | xor ebx,ebx |
- | |
694 | mov bl,al |
- | |
695 | and bl,15 |
- | |
696 | add ebx,hex |
- | |
697 | mov cl,[ebx] |
- | |
698 | dec esi |
- | |
699 | mov [esi],cl |
- | |
700 | shr eax,4 |
- | |
701 | xor ebx,ebx |
- | |
702 | mov bl,al |
- | |
703 | and bl,15 |
- | |
704 | add ebx,hex |
- | |
705 | mov cl,[ebx] |
- | |
706 | dec esi |
- | |
707 | mov [esi],cl |
- | |
708 | ret |
- | |
709 | ;------------------------------------------------------------------------------- |
- | |
710 | onoff: |
602 | onoff: |
711 | cmp [syslang],4 |
603 | cmp [syslang],4 |
712 | jne norus1 |
604 | jne norus1 |
713 | mov ebx,' ' |
605 | mov ebx,' ' |
714 | cmp eax,1 |
606 | cmp eax,1 |
Line 743... | Line 635... | ||
743 | ;------------------------------------------------------------------------------- |
635 | ;------------------------------------------------------------------------------- |
744 | _syslang: |
636 | _syslang: |
745 | mcall 21,5,[syslang] |
637 | mcall 21,5,[syslang] |
746 | ret |
638 | ret |
747 | ;------------------------------------------------------------------------------- |
639 | ;------------------------------------------------------------------------------- |
748 | _mouse_speed: |
- | |
749 | mcall 18,19,1,[mouse_speed] |
- | |
750 | ret |
- | |
751 | ;------------------------------------------------------------------------------- |
- | |
752 | _mouse_delay: |
- | |
753 | mcall 18,19,3,[mouse_delay] |
- | |
754 | ret |
- | |
755 | ;------------------------------------------------------------------------------- |
- | |
756 | _speaker_mute: |
640 | _speaker_mute: |
757 | mcall 18,8,1 |
641 | mcall 18,8,1 |
758 | cmp [speaker_mute],eax |
642 | cmp [speaker_mute],eax |
759 | je @f |
643 | je @f |
760 | inc ecx |
644 | inc ecx |
Line 804... | Line 688... | ||
804 | textrus: |
688 | textrus: |
805 | db '§ëª á¨á⥬ë : ENGLISH - + ਬ¥¨âì' |
689 | db '§ëª á¨á⥬ë : ENGLISH - + ਬ¥¨âì' |
806 | db ' ᪫ ¤ª ª« ¢¨ âãàë : ENGLISH - + ਬ¥¨âì' |
690 | db ' ᪫ ¤ª ª« ¢¨ âãàë : ENGLISH - + ਬ¥¨âì' |
807 | db 'ª«îç¨âì LBA : OFF - + ਬ¥¨âì' |
691 | db 'ª«îç¨âì LBA : OFF - + ਬ¥¨âì' |
808 | db '®áâ㯠ª 訥 PCI : OFF - + ਬ¥¨âì' |
692 | db '®áâ㯠ª 訥 PCI : OFF - + ਬ¥¨âì' |
809 | db 'ª®à®áâì ªãàá®à ¬ëè¨ : 1 - + ਬ¥¨âì' |
- | |
810 | db ' ¤¥à¦ª ãáª®à¥¨ï ¬ëè¨ : 0x00a - + ਬ¥¨âì' |
- | |
811 | db '몫îç¨âì SPEAKER : OFF - + ਬ¥¨âì' |
693 | db '몫îç¨âì SPEAKER : OFF - + ਬ¥¨âì' |
Line 812... | Line 694... | ||
812 | 694 | ||
813 | db ' : ਬ¥¨âì ¢á¥ ' |
695 | db ' : ਬ¥¨âì ¢á¥ ' |
814 | db ' ®åà ¨âì ¢á¥ ' |
696 | db ' ®åà ¨âì ¢á¥ ' |
815 | ;------------------------------------------------------------------------------- |
697 | ;------------------------------------------------------------------------------- |
816 | texteng: |
698 | texteng: |
817 | db 'System language : ENGLISH - + Apply ' |
699 | db 'System language : ENGLISH - + Apply ' |
818 | db 'Keyboard layout : ENGLISH - + Apply ' |
700 | db 'Keyboard layout : ENGLISH - + Apply ' |
819 | db 'LBA read enabled : OFF - + Apply ' |
701 | db 'LBA read enabled : OFF - + Apply ' |
820 | db 'PCI access for appl. : OFF - + Apply ' |
- | |
821 | db 'Mouse pointer speed : 1 - + Apply ' |
- | |
822 | db 'Mouse pointer delay : 0x00a - + Apply ' |
702 | db 'PCI access for appl. : OFF - + Apply ' |
823 | db 'SPEAKER disabled : OFF - + Apply ' |
703 | db 'SPEAKER disabled : OFF - + Apply ' |
Line 824... | Line 704... | ||
824 | text1_strings = 7 |
704 | text1_strings = 5 |
825 | 705 | ||
826 | db 'NOTE: Apply all ' |
706 | db 'NOTE: Apply all ' |
827 | db 'SAVE YOUR SETTINGS BEFORE QUITING KOLIBRI Save all ' |
707 | db 'SAVE YOUR SETTINGS BEFORE QUITING KOLIBRI Save all ' |
828 | textet: |
708 | textet: |
829 | db 'Süsteemi keel : ENGLISH - + Kinnita ' |
709 | db 'Süsteemi keel : ENGLISH - + Kinnita ' |
830 | db 'Klaviatuuri paigutus : ENGLISH - + Kinnita ' |
710 | db 'Klaviatuuri paigutus : ENGLISH - + Kinnita ' |
831 | db 'LBA lugemine lubatud : VÄL. - + Kinnita ' |
- | |
832 | db 'PCI juurdepääs programm. : VÄL. - + Kinnita ' |
- | |
833 | db 'Hiire kursori kiirus : 1 - + Kinnita ' |
711 | db 'LBA lugemine lubatud : VÄL. - + Kinnita ' |
834 | db 'Hiire kursori viide : 0x00a - + Kinnita ' |
712 | db 'PCI juurdepääs programm. : VÄL. - + Kinnita ' |
835 | db 'SPEAKER disabled : VÄL. - + Kinnita ' |
713 | db 'SPEAKER disabled : VÄL. - + Kinnita ' |
836 | db 'MÄRKUS: Kinnita kõik' |
714 | db 'MÄRKUS: Kinnita kõik' |
837 | db 'SALVESTA SEADED ENNE KOLIBRIST VÄLJUMIST Salvesta kõik' |
715 | db 'SALVESTA SEADED ENNE KOLIBRIST VÄLJUMIST Salvesta kõik' |
Line 862... | Line 740... | ||
862 | ;------------------------------------------------------------------------------- |
740 | ;------------------------------------------------------------------------------- |
863 | keyboard dd 0x0 |
741 | keyboard dd 0x0 |
864 | syslang dd 0x4 ; 4 - rus |
742 | syslang dd 0x4 ; 4 - rus |
865 | lba_read dd 0x1 |
743 | lba_read dd 0x1 |
866 | pci_acc dd 0x1 |
744 | pci_acc dd 0x1 |
867 | mouse_speed dd 0x2 |
- | |
868 | mouse_delay dd 0xa |
- | |
869 | speaker_mute dd 0 ; 0 - enable, 1 - disable |
745 | speaker_mute dd 0 ; 0 - enable, 1 - disable |
870 | ;----------------------------------------------------------------------------- |
746 | ;----------------------------------------------------------------------------- |
871 | IM_END: |
747 | IM_END: |
872 | ;----------------------------------------------------------------------------- |
748 | ;----------------------------------------------------------------------------- |
873 | align 4 |
749 | align 4 |