Subversion Repositories Kolibri OS

Rev

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

Rev 9715 Rev 9828
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 9715 $
8
$Revision: 9828 $
9
 
9
 
10
 
10
 
Line 103... Line 103...
103
;---------------------------------------------------------------------
103
;---------------------------------------------------------------------
104
align 4
104
align 4
105
set_keyboard_data:
105
set_keyboard_data:
106
        movzx   eax, word[thread_count]; top window process
106
        movzx   eax, word[thread_count]; top window process
107
        movzx   eax, word[WIN_POS + eax*2]
107
        movzx   eax, word[WIN_POS + eax*2]
108
        shl     eax, 8
108
        shl     eax, BSF sizeof.APPDATA
109
        mov     al, [SLOT_BASE + eax + APPDATA.keyboard_mode]
109
        mov     al, [SLOT_BASE + eax + APPDATA.keyboard_mode]
110
        mov     [keyboard_mode], al
110
        mov     [keyboard_mode], al
Line 111... Line 111...
111
        
111
        
Line 201... Line 201...
201
        mov     [keyboard_mode], al
201
        mov     [keyboard_mode], al
Line 202... Line 202...
202
        
202
        
203
        in      al, 0x60
203
        in      al, 0x60
204
;--------------------------------------
204
;--------------------------------------
-
 
205
send_scancode:
205
send_scancode:
206
        ;DEBUGF  1, "K : Scan code: %x \n", al
206
        mov     [keyboard_data], al
207
        mov     [keyboard_data], al
207
; ch = scancode
208
; ch = scancode
208
; cl = ext_code
209
; cl = ext_code
209
; bh = 0 - normal key
210
; bh = 0 - normal key