Games with ZXpand JOYSTICK base

General games-related topics
User avatar
bobs
Posts: 274
Joined: Thu Aug 27, 2009 9:49 pm
Location: Derbyshire, UK
Contact:

Re: Games with ZXpand JOYSTICK base

Post by bobs » Sun Sep 09, 2012 12:39 pm

Andy Rea wrote:try this one, it;s hacked to increase the delay when testing for ZXpand
So how long a delay is required then? My original code had 20 Tstates worth - how much did you use?

User avatar
Andy Rea
Posts: 1268
Joined: Fri May 09, 2008 1:48 pm
Location: notts UK

Re: Games with ZXpand JOYSTICK base

Post by Andy Rea » Sun Sep 09, 2012 1:34 pm

Hi Bobs,

After some talk with SirMorris, and a little experimentation, i found that anything over 40 cycles worked on my machine with the latest firmware / rom. After doing a byte search (luckily your code is the same as Sirmorris example) i was able to find the test sequence in my favorite binary eidtor, and changed the 5 nops for :-

push af
call $002f ;jumps to a ret instruction
pop af

which if i'm not mistaken takes 48 cycles.

you could of course use any code that leaves registers ect intact...

Regards Andy
6 x ZX81, 1 x TS1500 , 1 x +3e, 1 x timex 2040 printer, 1 x timex 2020 cassette deck, siclair printer and some spectrum

User avatar
sirmorris
Posts: 2699
Joined: Thu May 08, 2008 4:45 pm
Location: oxon, uk

Re: Games with ZXpand JOYSTICK base

Post by sirmorris » Sun Sep 09, 2012 1:38 pm

It looks like the heartbeat code has moved and now takes longer to respond than it used to :¬<

I'll have to update the examples.

C
--=== ZXpand+ ... A more moderner all-in-one upgrade solution for ZX81 ===--
* SD/MMC storage * 32K Hires-capable RAM * AY sound chip * Joystick port * Serial *
* BASIC enhancements - plug & play * Reset button * Auto-boot facility *

User avatar
bobs
Posts: 274
Joined: Thu Aug 27, 2009 9:49 pm
Location: Derbyshire, UK
Contact:

Re: Games with ZXpand JOYSTICK base

Post by bobs » Sun Sep 09, 2012 1:53 pm

Andy Rea wrote:Hi Bobs,

After some talk with SirMorris, and a little experimentation, i found that anything over 40 cycles worked on my machine with the latest firmware / rom. After doing a byte search (luckily your code is the same as Sirmorris example) i was able to find the test sequence in my favorite binary eidtor, and changed the 5 nops for :-

push af
call $002f ;jumps to a ret instruction
pop af

which if i'm not mistaken takes 48 cycles.

you could of course use any code that leaves registers ect intact...

Regards Andy

Thanks for the info. I'll make sure I update the build to include at least 48Tstates, and also use that for any future games. (In the future I'll probably submit the request the frame before or similar - it's just in this case the joystick support was added as an afterthought)

RWAP
Site Admin
Posts: 1235
Joined: Thu May 08, 2008 7:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Games with ZXpand JOYSTICK base

Post by RWAP » Sun Sep 09, 2012 3:02 pm

Ermm - I tried it at the Spectrum is 30 show yesterday where I had been demo'ing programs all day, and I couldn't get it to respond to the joystick...

User avatar
yerzmyey
Posts: 1228
Joined: Thu May 15, 2008 9:11 am
Location: Rubber Planet
Contact:

Re: Games with ZXpand JOYSTICK base

Post by yerzmyey » Sun Sep 09, 2012 7:53 pm

RWAP wrote:Ermm - I tried it at the Spectrum is 30 show yesterday
Do You have any photos from the party? :twisted:
"FERENGI" - an arcade game for ZX81: http://tiny.pl/hp3bq
"MONOCHROME" issue 5 (Spring 2014) - a free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX-81/TS1000/TS1500 COMPETITIONS 2007/2009: http://zx81.republika.pl/

RWAP
Site Admin
Posts: 1235
Joined: Thu May 08, 2008 7:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Games with ZXpand JOYSTICK base

Post by RWAP » Sun Sep 09, 2012 8:23 pm

I was too busy to take photos - there will be lots on world of Spectrum !

RWAP
Site Admin
Posts: 1235
Joined: Thu May 08, 2008 7:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Games with ZXpand JOYSTICK base

Post by RWAP » Sat Sep 15, 2012 10:37 am

It would be good to add joystick support to the ZX80 flicker free games from Paul Farrow -

http://www.fruitcake.plus.com/Sinclair/ ... hanism.htm

User avatar
1024MAK
Posts: 1804
Joined: Mon Sep 26, 2011 9:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Games with ZXpand JOYSTICK base

Post by 1024MAK » Sat Sep 15, 2012 2:48 pm

RWAP wrote:It would be good to add joystick support to the ZX80 flicker free games from Paul Farrow -
http://www.fruitcake.plus.com/Sinclair/ ... hanism.htm
Kong http://www.fruitcake.plus.com/Sinclair/ ... 0_Kong.htm has Kempston joystick support.
The game can be played using either the cursor keys (5 for left, 6 for down, 7 for up and 8 for right, 0 for jump), Sinclair joystick/keys (6 for left, 7 for right, 8 for down, 9 for down, 0 for jump), or a Kempston joystick. Press key C to cycle through the control options.
And from ftp://ftp.worldofspectrum.org/pub/sincl ... erface.pdf
The interface fits onto the Spectrum’s edge connector at the rear of the computer.
The interface has a 23 way connector so it can be used behind the ZX printer if required.
I have a number of Kempston compatible joystick interfaces. The early ones mostly seem to be fitted with the ZX80/ZX81 size edge connector. I have tested the working ones and have found that they work okay on a Zeddy :D

Mark

RWAP
Site Admin
Posts: 1235
Joined: Thu May 08, 2008 7:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Games with ZXpand JOYSTICK base

Post by RWAP » Tue Sep 18, 2012 9:34 am

Ah but they don't work with the ZXpand Joystick....

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest