Rev 3430 | Rev 3702 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3430 | Rev 3539 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | ;; KolibriOS 16-bit loader, ;; |
9 | ;; KolibriOS 16-bit loader, ;; |
10 | ;; based on bootcode for MenuetOS ;; |
10 | ;; based on bootcode for MenuetOS ;; |
11 | ;; ;; |
11 | ;; ;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 13... | Line 13... | ||
13 | 13 | ||
Line 14... | Line 14... | ||
14 | $Revision: 3430 $ |
14 | $Revision: 3539 $ |
15 | 15 | ||
16 | 16 | ||
Line 426... | Line 426... | ||
426 | and cx, 0xFFF0 ; clear address decode type |
426 | and cx, 0xFFF0 ; clear address decode type |
427 | mov [es:BOOT_IDE_BASE_ADDR], cx |
427 | mov [es:BOOT_IDE_BASE_ADDR], cx |
428 | .nopci: |
428 | .nopci: |
429 | ; \end{Mario79} |
429 | ; \end{Mario79} |
Line 430... | Line 430... | ||
430 | 430 | ||
431 | mov al, 0xf6 ; Ñáðîñ êëàâèàòóðû, ðàçðåøèòü ñêàíèðîâàíèå |
431 | mov al, 0xf6 ; Сброс клавиатуры, разрешить сканирование |
432 | out 0x60, al |
432 | out 0x60, al |
433 | xor cx, cx |
433 | xor cx, cx |
434 | wait_loop: ; variant 2 |
434 | wait_loop: ; variant 2 |
435 | ; reading state of port of 8042 controller |
435 | ; reading state of port of 8042 controller |
Line 845... | Line 845... | ||
845 | add ax, 18-1 |
845 | add ax, 18-1 |
846 | mov bx, 18 |
846 | mov bx, 18 |
847 | xor dx, dx |
847 | xor dx, dx |
848 | div bx |
848 | div bx |
849 | if lang eq ru |
849 | if lang eq ru |
850 | ; ¯®¤®¦¤¨â¥ 5 ᥪã¤, 4/3/2 ᥪã¤ë, 1 ᥪã¤ã |
850 | ; подождите 5 секунд, 4/3/2 секунды, 1 секунду |
851 | cmp al, 5 |
851 | cmp al, 5 |
852 | mov cl, ' ' |
852 | mov cl, ' ' |
853 | jae @f |
853 | jae @f |
854 | cmp al, 1 |
854 | cmp al, 1 |
855 | mov cl, 'ã' |
855 | mov cl, 0xE3 ; 'у' in cp866 |
856 | jz @f |
856 | jz @f |
857 | mov cl, 'ë' |
857 | mov cl, 0xEB ; 'ы' in cp866 |
858 | @@: |
858 | @@: |
859 | mov [time_str+9], cl |
859 | mov [time_str+9], cl |
860 | else if lang eq et |
860 | else if lang eq et |
861 | cmp al, 1 |
861 | cmp al, 1 |
862 | ja @f |
862 | ja @f |
863 | mov [time_str+9], ' ' |
863 | mov byte [time_str+9], ' ' |
864 | mov [time_str+10], ' ' |
864 | mov byte [time_str+10], ' ' |
865 | @@: |
865 | @@: |
866 | else if lang eq sp |
866 | else if lang eq sp |
867 | ; esperar 5/4/3/2 segundos, 1 segundo |
867 | ; esperar 5/4/3/2 segundos, 1 segundo |
868 | cmp al, 1 |
868 | cmp al, 1 |
869 | mov cl, 's' |
869 | mov cl, 's' |