Subversion Repositories Kolibri OS

Rev

Rev 4923 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4923 Rev 5116
Line 392... Line 392...
392
        jmp     $
392
        jmp     $
393
     cpugood:
393
     cpugood:
Line 394... Line 394...
394
 
394
 
395
        push    0
395
        push    0
396
        popf
-
 
Line 397... Line 396...
397
        sti
396
        popf
398
 
397
 
Line 399... Line 398...
399
; set up esp
398
; set up esp
400
        movzx   esp, sp
399
        movzx   esp, sp
Line -... Line 400...
-
 
400
 
-
 
401
        push    0
-
 
402
        pop     es
-
 
403
 
-
 
404
        xor     cx, cx
-
 
405
@@:
401
 
406
        in      al, 64h
402
        push    0
407
        test    al, 2
403
        pop     es
408
        loopnz  @b
404
 
409
 
405
        mov     al, 0xf6        ; Сброс клавиатуры, разрешить сканирование
-
 
406
        out     0x60, al
410
        mov     al, 0xf6        ; Сброс клавиатуры, разрешить сканирование
407
        xor     cx, cx
411
        out     0x60, al
408
wait_loop:       ; variant 2
412
        xor     cx, cx
409
; reading state of port of 8042 controller
413
@@:
Line 410... Line 414...
410
        in      al, 64h
414
        in      al, 64h
411
        and     al, 00000010b  ; ready flag
415
        test    al, 1
412
; wait until 8042 controller is ready
416
        loopz   @b
413
        loopnz  wait_loop
417
        in      al, 0x60
414
 
418
 
415
;;;/diamond today   5.02.2008
419
;;;/diamond today   5.02.2008
416
; set keyboard typematic rate & delay
420
; set keyboard typematic rate & delay
417
        mov     al, 0xf3
421
        mov     al, 0xf3
418
        out     0x60, al
422
        out     0x60, al
-
 
423
        xor     cx, cx
419
        xor     cx, cx
424
@@:
420
@@:
425
        in      al, 64h
421
        in      al, 64h
426
        test    al, 1
422
        test    al, 2
427
        loopz   @b
423
        loopnz  @b
428
        in      al, 0x60
424
        mov     al, 0
429
        mov     al, 0
425
        out     0x60, al
430
        out     0x60, al
-
 
431
        xor     cx, cx
426
        xor     cx, cx
432
@@:
-
 
433
        in      al, 64h
427
@@:
434
        test    al, 1
428
        in      al, 64h
435
        loopz   @b
429
        test    al, 2
436
        in      al, 0x60
430
        loopnz  @b
437
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
431
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
438
        sti