Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 127 → Rev 126

/programs/system/setup/trunk/setup.asm
8,7 → 8,6
; A. Ivushkin - autostart (w launcher)
; M. Lisovin - added many feauters (apply all, save all, set time...)
; I. Poddubny - fixed russian keymap
;14/08/06 Mario79 - added regulation of mouse features
 
;******************************************************************************
use32
37,8 → 36,7
call _wssp ;6
call _syslang ;5
call _keyboard ;2
call _mouse_speed
call _mouse_delay
call _mouse
call get_disk_info
cmp [cd],0
jne no_cd
248,8 → 246,6
mov [pci_acc],eax
mcall 18,19,0
mov [mouse_speed],eax
mcall 18,19,2
mov [mouse_delay],eax
ret
 
;******************************************************************************
717,37 → 713,8
.noplus:
cmp ah,131
jnz .noapply
call _mouse_speed
call _mouse
.noapply:
mousedelay:
cmp ah,142 ; SET MOUSE DELAY
jnz .nominus
mov eax,[mouse_delay]
sub eax,2
cmp eax,0xfff
jb @f
mov eax,0xffe
@@:
inc eax
mov [mouse_delay],eax
call draw_infotext
.nominus:
cmp ah,143
jnz .noplus
mov eax,[mouse_delay]
cmp eax,0xfff
jb @f
mov eax,0
@@:
inc eax
mov [mouse_delay],eax
call draw_infotext
.noplus:
cmp ah,141
jnz .noapply
call _mouse_delay
.noapply:
 
cmp ah,3 ; SET KEYMAP
jne still
call _keyboard
892,7 → 859,7
 
xor eax,eax ; DRAW WINDOW
mov ebx,40*65536+355+BBB
mov ecx,40*65536+320
mov ecx,40*65536+310
mov edx,0x83111199
; mov esi,0x805588dd
; mov edi,0x005588dd
918,7 → 885,7
 
mov eax,8 ; APPLY ALL
mov ebx,(350-79)*65536+100
mov ecx,282*65536+12
mov ecx,266*65536+12
mov edx,100
mov esi,0x005588dd
int 0x40
984,10 → 951,6
mov ecx,43+26*8 ; 26
call draw_buttons
 
mov edx,141
mov ecx,43+28*8 ; 26
call draw_buttons
 
call draw_infotext
 
mov eax,12
1162,17 → 1125,13
call onoff ; PCI ACCESS
mov [text00+LLL*20+28],ebx
 
mov eax,[mouse_speed] ; MOUSE SPEED
mov eax,[mouse_speed] ; MOUSE ACSELERATION
add al,48
mov [text00+LLL*26+28],al
 
mov eax,[mouse_delay]
mov esi,text00+LLL*28+32
call hexconvert ; MOUSE DELAY
 
mov eax,13
mov ebx,175*65536+85
mov ecx,40*65536+245
mov ecx,40*65536+225
mov edx,0x80111199-19
int 0x40
 
1216,7 → 1175,7
 
mov eax,13
mov ebx,175*65536+85
mov ecx,40*65536+245
mov ecx,40*65536+225
mov edx,0x80111199-19
int 0x40
 
1364,7 → 1323,7
int 0x40
ret
 
_mouse_speed:
_mouse:
mov eax,18
mov ebx,19
mov ecx,1
1372,18 → 1331,10
int 0x40
ret
 
_mouse_delay:
mov eax,18
mov ebx,19
mov ecx,3
mov edx,[mouse_delay]
int 0x40
ret
 
loadtxt:
cld
mov edi,text00
mov ecx,488 ;28
mov ecx,458 ;28
cmp [syslang],4
jne norus
mov esi,textrus
1485,8 → 1436,6
db ' '
db '‘ª®à®áâì ªãàá®à  ¬ëè¨ : 1 - + à¨¬¥­¨âì'
db ' '
db '‡ ¤¥à¦ª  ã᪮७¨ï ¬ëè¨ : 0x00a - + à¨¬¥­¨âì'
db ' '
db '‚ˆŒ€ˆ…: à¨¬¥­¨âì ¢á¥ '
db 'ˆ‘Ž‹œ‡“‰’… „Ž‘’“ Š FAT ‘ Ž‘’ŽŽ†Ž‘’œž! '
db '… ‡€“„œ’… ‘Ž•€ˆ’œ €‘’Ž‰Šˆ ‘®åà ­¨âì ¢á¥ '
1522,8 → 1471,6
db ' '
db 'Mouse pointer speed : 1 - + APPLY '
db ' '
db 'Mouse pointer delay : 0x00a - + APPLY '
db ' '
db 'NOTE: APPLY ALL '
db 'TEST FAT FUNCTIONS WITH EXTREME CARE '
db 'SAVE YOUR SETTINGS BEFORE QUIT MENUET SAVE ALL '
1715,7 → 1662,7
dd 0
dd 0
dd 0
dd 56
dd 52
dd keyboard
db 0
dd file_name
1724,7 → 1671,7
dd 2
dd 0
dd 0
dd 56
dd 52
dd keyboard
file_name: db '/rd/1/setup.dat',0
 
1743,7 → 1690,6
lba_read dd 0x1
pci_acc dd 0x1
mouse_speed dd 0x3
mouse_delay dd 0x10
text00:
 
I_END: