linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PS/2 Mouse
@ 2006-03-09 22:42 Martin Fflores
  2006-03-10  0:07 ` leslie.polzer
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Fflores @ 2006-03-09 22:42 UTC (permalink / raw)
  To: linux-assembly

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/


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PS/2 Mouse
  2006-03-09 22:42 PS/2 Mouse Martin Fflores
@ 2006-03-10  0:07 ` leslie.polzer
  0 siblings, 0 replies; 2+ messages in thread
From: leslie.polzer @ 2006-03-10  0:07 UTC (permalink / raw)
  To: Martin Fflores; +Cc: linux-assembly

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

On Thu, Mar 09, 2006 at 10:42:04PM +0000, Martin Fflores wrote:

> asm("outb %%al,$0x60;": :"a"(EnabledDataReport));
Try

 asm("outb %%al,$0x60;": "a"(EnabledDataReport):);

instead.

  Leslie

-- 
gpg --keyserver pgp.mit.edu --recv-keys 0x52D70289
http://nic-nac-project.de/~skypher/

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-10  0:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-09 22:42 PS/2 Mouse Martin Fflores
2006-03-10  0:07 ` leslie.polzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).