Rev 120 | Rev 275 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 120 | Rev 127 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | ; Authors: Ville - original version |
7 | ; Authors: Ville - original version |
8 | ; A. Ivushkin - autostart (w launcher) |
8 | ; A. Ivushkin - autostart (w launcher) |
9 | ; M. Lisovin - added many feauters (apply all, save all, set time...) |
9 | ; M. Lisovin - added many feauters (apply all, save all, set time...) |
- | 10 | ; I. Poddubny - fixed russian keymap |
|
Line 10... | Line 11... | ||
10 | ; I. Poddubny - fixed russian keymap |
11 | ;14/08/06 Mario79 - added regulation of mouse features |
11 | 12 | ||
12 | ;****************************************************************************** |
13 | ;****************************************************************************** |
13 | use32 |
14 | use32 |
Line 34... | Line 35... | ||
34 | call _pci_acc ;12 |
35 | call _pci_acc ;12 |
35 | call _sb16 ;4 |
36 | call _sb16 ;4 |
36 | call _wssp ;6 |
37 | call _wssp ;6 |
37 | call _syslang ;5 |
38 | call _syslang ;5 |
38 | call _keyboard ;2 |
39 | call _keyboard ;2 |
- | 40 | call _mouse_speed |
|
39 | call _mouse |
41 | call _mouse_delay |
40 | call get_disk_info |
42 | call get_disk_info |
41 | cmp [cd],0 |
43 | cmp [cd],0 |
42 | jne no_cd |
44 | jne no_cd |
43 | call _cdbase ;3 |
45 | call _cdbase ;3 |
44 | no_cd: |
46 | no_cd: |
Line 244... | Line 246... | ||
244 | mov [lba_read],eax |
246 | mov [lba_read],eax |
245 | mcall 26,12 |
247 | mcall 26,12 |
246 | mov [pci_acc],eax |
248 | mov [pci_acc],eax |
247 | mcall 18,19,0 |
249 | mcall 18,19,0 |
248 | mov [mouse_speed],eax |
250 | mov [mouse_speed],eax |
- | 251 | mcall 18,19,2 |
|
- | 252 | mov [mouse_delay],eax |
|
249 | ret |
253 | ret |
Line 250... | Line 254... | ||
250 | 254 | ||
Line 251... | Line 255... | ||
251 | ;****************************************************************************** |
255 | ;****************************************************************************** |
Line 711... | Line 715... | ||
711 | mov [mouse_speed],eax |
715 | mov [mouse_speed],eax |
712 | call draw_infotext |
716 | call draw_infotext |
713 | .noplus: |
717 | .noplus: |
714 | cmp ah,131 |
718 | cmp ah,131 |
715 | jnz .noapply |
719 | jnz .noapply |
716 | call _mouse |
720 | call _mouse_speed |
717 | .noapply: |
721 | .noapply: |
- | 722 | mousedelay: |
|
- | 723 | cmp ah,142 ; SET MOUSE DELAY |
|
- | 724 | jnz .nominus |
|
- | 725 | mov eax,[mouse_delay] |
|
- | 726 | sub eax,2 |
|
- | 727 | cmp eax,0xfff |
|
- | 728 | jb @f |
|
- | 729 | mov eax,0xffe |
|
- | 730 | @@: |
|
- | 731 | inc eax |
|
- | 732 | mov [mouse_delay],eax |
|
- | 733 | call draw_infotext |
|
- | 734 | .nominus: |
|
- | 735 | cmp ah,143 |
|
- | 736 | jnz .noplus |
|
- | 737 | mov eax,[mouse_delay] |
|
- | 738 | cmp eax,0xfff |
|
- | 739 | jb @f |
|
- | 740 | mov eax,0 |
|
- | 741 | @@: |
|
- | 742 | inc eax |
|
- | 743 | mov [mouse_delay],eax |
|
- | 744 | call draw_infotext |
|
- | 745 | .noplus: |
|
- | 746 | cmp ah,141 |
|
- | 747 | jnz .noapply |
|
- | 748 | call _mouse_delay |
|
- | 749 | .noapply: |
|
- | 750 | ||
718 | cmp ah,3 ; SET KEYMAP |
751 | cmp ah,3 ; SET KEYMAP |
719 | jne still |
752 | jne still |
720 | call _keyboard |
753 | call _keyboard |
721 | jmp still |
754 | jmp still |
Line 857... | Line 890... | ||
857 | mov ebx,1 |
890 | mov ebx,1 |
858 | int 0x40 |
891 | int 0x40 |
Line 859... | Line 892... | ||
859 | 892 | ||
860 | xor eax,eax ; DRAW WINDOW |
893 | xor eax,eax ; DRAW WINDOW |
861 | mov ebx,40*65536+355+BBB |
894 | mov ebx,40*65536+355+BBB |
862 | mov ecx,40*65536+310 |
895 | mov ecx,40*65536+320 |
863 | mov edx,0x83111199 |
896 | mov edx,0x83111199 |
864 | ; mov esi,0x805588dd |
897 | ; mov esi,0x805588dd |
865 | ; mov edi,0x005588dd |
898 | ; mov edi,0x005588dd |
Line 883... | Line 916... | ||
883 | ; mov esi,0x005588dd |
916 | ; mov esi,0x005588dd |
884 | ; int 0x40 |
917 | ; int 0x40 |
Line 885... | Line 918... | ||
885 | 918 | ||
886 | mov eax,8 ; APPLY ALL |
919 | mov eax,8 ; APPLY ALL |
887 | mov ebx,(350-79)*65536+100 |
920 | mov ebx,(350-79)*65536+100 |
888 | mov ecx,266*65536+12 |
921 | mov ecx,282*65536+12 |
889 | mov edx,100 |
922 | mov edx,100 |
890 | mov esi,0x005588dd |
923 | mov esi,0x005588dd |
891 | int 0x40 |
924 | int 0x40 |
892 | add ecx,16*65536 ; SAVE ALL |
925 | add ecx,16*65536 ; SAVE ALL |
Line 949... | Line 982... | ||
949 | 982 | ||
950 | mov edx,131 |
983 | mov edx,131 |
951 | mov ecx,43+26*8 ; 26 |
984 | mov ecx,43+26*8 ; 26 |
Line -... | Line 985... | ||
- | 985 | call draw_buttons |
|
- | 986 | ||
- | 987 | mov edx,141 |
|
- | 988 | mov ecx,43+28*8 ; 26 |
|
952 | call draw_buttons |
989 | call draw_buttons |
Line 953... | Line 990... | ||
953 | 990 | ||
954 | call draw_infotext |
991 | call draw_infotext |
955 | 992 | ||
Line 1123... | Line 1160... | ||
1123 | 1160 | ||
1124 | mov eax,[pci_acc] |
1161 | mov eax,[pci_acc] |
1125 | call onoff ; PCI ACCESS |
1162 | call onoff ; PCI ACCESS |
Line 1126... | Line 1163... | ||
1126 | mov [text00+LLL*20+28],ebx |
1163 | mov [text00+LLL*20+28],ebx |
1127 | 1164 | ||
1128 | mov eax,[mouse_speed] ; MOUSE ACSELERATION |
1165 | mov eax,[mouse_speed] ; MOUSE SPEED |
Line -... | Line 1166... | ||
- | 1166 | add al,48 |
|
- | 1167 | mov [text00+LLL*26+28],al |
|
- | 1168 | ||
- | 1169 | mov eax,[mouse_delay] |
|
1129 | add al,48 |
1170 | mov esi,text00+LLL*28+32 |
1130 | mov [text00+LLL*26+28],al |
1171 | call hexconvert ; MOUSE DELAY |
1131 | 1172 | ||
1132 | mov eax,13 |
1173 | mov eax,13 |
1133 | mov ebx,175*65536+85 |
1174 | mov ebx,175*65536+85 |
Line 1134... | Line 1175... | ||
1134 | mov ecx,40*65536+225 |
1175 | mov ecx,40*65536+245 |
1135 | mov edx,0x80111199-19 |
1176 | mov edx,0x80111199-19 |
Line 1173... | Line 1214... | ||
1173 | call unpackdate |
1214 | call unpackdate |
1174 | mov [text00+LLL*24+31],word bx ;day |
1215 | mov [text00+LLL*24+31],word bx ;day |
Line 1175... | Line 1216... | ||
1175 | 1216 | ||
1176 | mov eax,13 |
1217 | mov eax,13 |
1177 | mov ebx,175*65536+85 |
1218 | mov ebx,175*65536+85 |
1178 | mov ecx,40*65536+225 |
1219 | mov ecx,40*65536+245 |
1179 | mov edx,0x80111199-19 |
1220 | mov edx,0x80111199-19 |
Line 1180... | Line 1221... | ||
1180 | int 0x40 |
1221 | int 0x40 |
1181 | 1222 | ||
Line 1321... | Line 1362... | ||
1321 | mov ebx,5 |
1362 | mov ebx,5 |
1322 | mov ecx,[syslang] |
1363 | mov ecx,[syslang] |
1323 | int 0x40 |
1364 | int 0x40 |
1324 | ret |
1365 | ret |
Line 1325... | Line 1366... | ||
1325 | 1366 | ||
1326 | _mouse: |
1367 | _mouse_speed: |
1327 | mov eax,18 |
1368 | mov eax,18 |
1328 | mov ebx,19 |
1369 | mov ebx,19 |
1329 | mov ecx,1 |
1370 | mov ecx,1 |
1330 | mov edx,[mouse_speed] |
1371 | mov edx,[mouse_speed] |
1331 | int 0x40 |
1372 | int 0x40 |
Line -... | Line 1373... | ||
- | 1373 | ret |
|
- | 1374 | ||
- | 1375 | _mouse_delay: |
|
- | 1376 | mov eax,18 |
|
- | 1377 | mov ebx,19 |
|
- | 1378 | mov ecx,3 |
|
- | 1379 | mov edx,[mouse_delay] |
|
- | 1380 | int 0x40 |
|
1332 | ret |
1381 | ret |
1333 | 1382 | ||
1334 | loadtxt: |
1383 | loadtxt: |
1335 | cld |
1384 | cld |
1336 | mov edi,text00 |
1385 | mov edi,text00 |
1337 | mov ecx,458 ;28 |
1386 | mov ecx,488 ;28 |
1338 | cmp [syslang],4 |
1387 | cmp [syslang],4 |
1339 | jne norus |
1388 | jne norus |
1340 | mov esi,textrus |
1389 | mov esi,textrus |
Line 1434... | Line 1483... | ||
1434 | db ' ' |
1483 | db ' ' |
1435 | db '¨á⥬ ï ¤ â (¬,¤,£) : 00/00/00 - + ë¡®à ' |
1484 | db '¨á⥬ ï ¤ â (¬,¤,£) : 00/00/00 - + ë¡®à ' |
1436 | db ' ' |
1485 | db ' ' |
1437 | db 'ª®à®áâì ªãàá®à ¬ëè¨ : 1 - + ਬ¥¨âì' |
1486 | db 'ª®à®áâì ªãàá®à ¬ëè¨ : 1 - + ਬ¥¨âì' |
1438 | db ' ' |
1487 | db ' ' |
- | 1488 | db ' ¤¥à¦ª ãáª®à¥¨ï ¬ëè¨ : 0x00a - + ਬ¥¨âì' |
|
- | 1489 | db ' ' |
|
1439 | db ' : ਬ¥¨âì ¢á¥ ' |
1490 | db ' : ਬ¥¨âì ¢á¥ ' |
1440 | db ' FAT ! ' |
1491 | db ' FAT ! ' |
1441 | db ' ®åà ¨âì ¢á¥ ' |
1492 | db ' ®åà ¨âì ¢á¥ ' |
1442 | db 'x' |
1493 | db 'x' |
Line 1469... | Line 1520... | ||
1469 | db ' ' |
1520 | db ' ' |
1470 | db 'SYSTEM DATE (M,D,Y) : 00/00/00 - + SELECT ' |
1521 | db 'SYSTEM DATE (M,D,Y) : 00/00/00 - + SELECT ' |
1471 | db ' ' |
1522 | db ' ' |
1472 | db 'Mouse pointer speed : 1 - + APPLY ' |
1523 | db 'Mouse pointer speed : 1 - + APPLY ' |
1473 | db ' ' |
1524 | db ' ' |
- | 1525 | db 'Mouse pointer delay : 0x00a - + APPLY ' |
|
- | 1526 | db ' ' |
|
1474 | db 'NOTE: APPLY ALL ' |
1527 | db 'NOTE: APPLY ALL ' |
1475 | db 'TEST FAT FUNCTIONS WITH EXTREME CARE ' |
1528 | db 'TEST FAT FUNCTIONS WITH EXTREME CARE ' |
1476 | db 'SAVE YOUR SETTINGS BEFORE QUIT MENUET SAVE ALL ' |
1529 | db 'SAVE YOUR SETTINGS BEFORE QUIT MENUET SAVE ALL ' |
1477 | db 'x' |
1530 | db 'x' |
Line 1660... | Line 1713... | ||
1660 | 1713 | ||
1661 | read_fileinfo: |
1714 | read_fileinfo: |
1662 | dd 0 |
1715 | dd 0 |
1663 | dd 0 |
1716 | dd 0 |
1664 | dd 0 |
1717 | dd 0 |
1665 | dd 52 |
1718 | dd 56 |
1666 | dd keyboard |
1719 | dd keyboard |
1667 | db 0 |
1720 | db 0 |
Line 1668... | Line 1721... | ||
1668 | dd file_name |
1721 | dd file_name |
1669 | 1722 | ||
1670 | save_fileinfo: |
1723 | save_fileinfo: |
1671 | dd 2 |
1724 | dd 2 |
1672 | dd 0 |
1725 | dd 0 |
1673 | dd 0 |
1726 | dd 0 |
1674 | dd 52 |
1727 | dd 56 |
Line 1675... | Line 1728... | ||
1675 | dd keyboard |
1728 | dd keyboard |
Line 1688... | Line 1741... | ||
1688 | f32p dd 0x1 |
1741 | f32p dd 0x1 |
1689 | sound_dma dd 0x1 |
1742 | sound_dma dd 0x1 |
1690 | lba_read dd 0x1 |
1743 | lba_read dd 0x1 |
1691 | pci_acc dd 0x1 |
1744 | pci_acc dd 0x1 |
1692 | mouse_speed dd 0x3 |
1745 | mouse_speed dd 0x3 |
- | 1746 | mouse_delay dd 0x10 |
|
1693 | text00: |
1747 | text00: |
Line 1694... | Line 1748... | ||
1694 | 1748 | ||
1695 | I_END: |
1749 | I_END: |