Games with ZXpand JOYSTICK base

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

Re: Games with ZXpand JOYSTICK base

Post by bobs »

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: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: Games with ZXpand JOYSTICK base

Post by Andy Rea »

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
what's that Smell.... smells like fresh flux and solder fumes...
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: Games with ZXpand JOYSTICK base

Post by sirmorris »

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
User avatar
bobs
Posts: 325
Joined: Thu Aug 27, 2009 10:49 pm
Location: UK
Contact:

Re: Games with ZXpand JOYSTICK base

Post by bobs »

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
Posts: 1348
Joined: Thu May 08, 2008 8:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Games with ZXpand JOYSTICK base

Post by RWAP »

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: 1240
Joined: Thu May 15, 2008 10:11 am
Location: Rubber Planet
Contact:

Re: Games with ZXpand JOYSTICK base

Post by yerzmyey »

RWAP wrote:Ermm - I tried it at the Spectrum is 30 show yesterday
Do You have any photos from the party? :twisted:
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
RWAP
Posts: 1348
Joined: Thu May 08, 2008 8:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Games with ZXpand JOYSTICK base

Post by RWAP »

I was too busy to take photos - there will be lots on world of Spectrum !
RWAP
Posts: 1348
Joined: Thu May 08, 2008 8:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Games with ZXpand JOYSTICK base

Post by RWAP »

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: 5087
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Games with ZXpand JOYSTICK base

Post by 1024MAK »

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
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
RWAP
Posts: 1348
Joined: Thu May 08, 2008 8:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Games with ZXpand JOYSTICK base

Post by RWAP »

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