Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3626 → Rev 3625

/kernel/branches/Kolibri-acpi/drivers/usbhid.asm
234,7 → 234,8
; 8 bytes for a packet and 8 bytes for previous packet, used by a keyboard.
; 9. Initialize device data.
mov [ebx+device_data.intpipe], eax
movi ecx, 8
push 8
pop ecx
cmp edx, ecx
jb @f
mov edx, ecx
363,7 → 364,8
jb .controlloop
.nocontrol:
; 3. Initialize before loop for normal keys. esi = index.
movi esi, 2
push 2
pop esi
.normalloop:
; 4. Process one key which was pressed in the previous packet.
; 4a. Get the next pressed key from the previous packet.
484,7 → 486,8
 
; Auxiliary procedure for keyboard_data_ready.
haskey:
movi edx, 2
push 2
pop edx
@@:
cmp byte [ecx+edx], al
jz @f