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,027 of 4,675   
   Rod Pemberton to John"   
   Re: programming on PS2 mouse controller   
   15 Oct 17 05:53:30   
   
   From: EmailNullFile@nospicedham.voenflacbe.cpm   
      
   On Tue, 10 Oct 2017 09:39:34 -0000 (UTC)   
   "Kerr-Mudd,John"  wrote:   
      
   > What's the smallest mouse driver using only BIOS int 15 or   
   > "keyboard" in/out.   
      
   If you don't need to emulate Int 33h support for DOS, and if this is for   
   a dedicated application, not a standalone mouse driver, then I'd think   
   you'd mostly only need Int 15h, AX=C200h (enable), C205h (initialize),   
   C207h (set handler), a simple handler routine copy the C207h mouse data   
   to your application's mouse data buffer, and some code in your app to   
   decode and use the data from C207h.  You'd also need to set the cursor   
   position, Int 10h, AH=02h.  If the application is for DOS, you'd need   
   to make sure another mouse driver isn't already loaded, also.   
      
   It's been quite some years since I wrote the C code for my OS, which   
   I've not looked at recently, but it directly reads the mouse port.  It   
   wasn't using BIOS calls.   
      
      
   Rod Pemberton   
   --   
   Why are Hillary's living donors pedophiles and rapists?  Bill Clinton,   
   Harvey Weinstein, Anthony Wiener, Jeffrey Epstein, ...   
      
   --- 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