From: gvision@ntlworld.com   
      
   "Jim Leonard" wrote in message   
   news:1135359324.785156.193230@g14g2000cwa.googlegroups.com...   
   > Jason Burgon wrote:   
   > > Try using int $1C instead. This is already chained to IRQ0 (system   
   timer)   
   >   
   > Actually, it's fired off by int $08, which in turn is called once every   
   > 18.2 seconds by the timer.   
      
   Off _Int_8 yes, which is driven by _IRQ_0.   
      
   > To the OP: Having mouse drawing code in an interrupt is only useful if   
   > 1. You know your redraw code will execute very very fast (before the   
   > next interrupt)   
      
   Yes, but if the OP can't animate a mouse in 1-2ms or so then he should pick   
   another career or hobby.   
      
   > and 2. you have complete control of the system. You   
   > don't have that under XP, so I would recommend you don't use an   
   > interrupt-driven routine; instead, just poll the current mouse position   
   > and if it's different from last time (keep an oldx and oldy), then   
   > redraw. No interrupts needed.   
      
   No interrupts needed, but it is a much better solution than polling, even   
   without full control of the machine. But as I someone pointed out; the way   
   to animate the your own mouse is to set up a callback from the mouse driver   
   ISR using $33/$0C or $14. The animation code then needs to be a far (16:16)   
   procedure that takes just register-based parameters. With luck XP will   
   emulate this mouse functionality.   
      
   --   
   Jay   
      
   Author of Graphic Vision   
   http://homepage.ntlworld.com/gvision/   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|