home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,007 of 4,675   
   wolfgang kern to All   
   Re: programming on PS2 mouse controller   
   30 Sep 17 12:14:21   
   
   From: nowhere@never.at   
      
   I forgot to add:   
      
   you seem to work in text-mode (because of the 0xb8000),   
   but mice are made to work on hires graphic (up to 1200ticks/inch)   
   so you will need to scale all values down (with SHR).   
      
   >> Any ideas?   
      
   > Robert already said it, the mouse reports only delta motion since previous.   
   >   
   > you enabled IRQ12, but did you update IDT/VDT to point to your handler ?   
   >   
   > what I see yet as your 'handler' isn't an IRQ-routine, you poll it ?   
   >   
   > I'd add a synch check to it: if bit3 on a first byte read is not 1 then   
   > discard the input and reset the byte counter.   
   >   
   > packed data for X and Y movements in Wheelmouse mode are signed 9 bit   
   > values, so your MOVSX on the 8-bit wont work as desired.   
   >   
   > first byte bits 7/6 are y/x overflow, bits 5/4 are y/x (9th)sign bits.   
   >   
   > the Z-value is a signed 8 bit value even limited to +7/-8.   
   > __   
   > wolfgang   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca