Subversion Repositories Kolibri OS

Rev

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

Rev 5044 Rev 6241
Line 67... Line 67...
67
 
67
 
68
    mov  al, [mouse_cmd_byte]
68
    mov  al, [mouse_cmd_byte]
69
    call kbd_write
69
    call kbd_write
70
    cmp  ah, 1
70
    cmp  ah, 1
71
    je   .fail
71
    je   .fail
-
 
72
 
-
 
73
    cmp  [mouse_cmd_byte], 0xF5
72
 
74
    je .ok
73
    call mouse_read
75
    call mouse_read
74
 
76
 
75
    cmp  al, 0xFA
77
    cmp  al, 0xFA
-
 
78
    jne  .noack
76
    jne  .noack
79
.ok:
77
    clc
80
    clc
78
    ret
81
    ret
79
  .noack:
82
  .noack:
80
    cmp  al, 0xFE	; resend
83
    cmp  al, 0xFE	; resend
Line 83... Line 86...
83
    jnz  .resend
86
    jnz  .resend
84
  .noresend:
87
  .noresend:
85
  .fail:
88
  .fail:
86
    stc
89
    stc
87
    ret
90
    ret
88
  
91
 
89
  
92
 
90
mouse_read:
93
mouse_read:
91
    mov  [mouse_nr_tries], 100
94
    mov  [mouse_nr_tries], 100
92
  .repeat:
95
  .repeat:
93
    call kbd_read
96
    call kbd_read
94
	  cmp  ah, 1
97
	  cmp  ah, 1