Forum
Kempston Mouse driver - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Wishlist (https://www.boriel.com/forum/forumdisplay.php?fid=14)
+---- Thread: Kempston Mouse driver (/showthread.php?tid=374)



Kempston Mouse driver - oblo - 09-04-2011

Hi all

Boriel, how about to integrate this (<!-- m --><a class="postlink" href="http://www.worldofspectrum.org/infoseekid.cgi?id=0014620">http://www.worldofspectrum.org/infoseek ... id=0014620</a><!-- m -->) as a library?) Chris said that "You can use this code freely, but I would appreciate a credit!"

Cheers


Re: Kempston Mouse driver - oblo - 09-07-2011

Well, here is a PoC about using Chris driver in ZX Basic. I can't include the ASM code (the compiler gave me errors) so I use the compiled code directly. The PoC is a MamonoSweeper clone (<!-- m --><a class="postlink" href="http://www.hojamaka.com/game/mamono_sweeper/en.html">http://www.hojamaka.com/game/mamono_sweeper/en.html</a><!-- m -->)

Cheers


Re: Kempston Mouse driver - boriel - 09-07-2011

I will try later. Using Kempston joystick should be pretty strightforward. A simple function could be done IMHO with few INs intructions. Do we really need a "driver" :?: Perhaps this routine adds more high-level logic?


Re: Kempston Mouse driver - oblo - 09-07-2011

boriel Wrote:I will try later. Using Kempston joystick should be pretty strightforward. A simple function could be done IMHO with few INs intructions. Do we really need a "driver" :?: Perhaps this routine adds more high-level logic?

It's not Kempston Joystick, it's Kempston Mouse ;-) And yes, Kempston can be read using only INs but Chri's driver adds a pointer that works pretty good. You can see later when you try the PoC :-)

Cheers