PS/2 Mouse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



im just beginner, and im trying to make a PS/2 mouseInterface; my problem now is this
int EnabledDataReporting()
	{
         DiseableKeyBoard();
         do
         {
         WriteMouse();
         asm("outb %%al,$0x60;": :"a"(EnabledDataReport));
         }while(!IsCommandAcepted());
   /*      asm("outb %%al,$0x60;"::"a"(0xf4));//forzar datareporting*/
         EnabledKeyBoard();
         return TRUE;
      };
as you see i most to demand with the line between /* */, if i dont include this line , my mouse just stop to sending signals(or what ever it sends :D ) EnabledDataReport is 0xf4 but when i include the line 9 everything does fine,so my question is what i making wrong??? why if i put 0xf4 instead ENabledDAtaReport it work.

Take Folks

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

-
: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux