So how long a delay is required then? My original code had 20 Tstates worth - how much did you use?Andy Rea wrote:try this one, it;s hacked to increase the delay when testing for ZXpand
Games with ZXpand JOYSTICK base
Re: Games with ZXpand JOYSTICK base
Re: Games with ZXpand JOYSTICK base
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
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...
Re: Games with ZXpand JOYSTICK base
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
I'll have to update the examples.
C
Re: Games with ZXpand JOYSTICK base
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)
Re: Games with ZXpand JOYSTICK base
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...
Rich Mellor
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module
Also Involved in:
Icephorm
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module
Also Involved in:
Icephorm
Re: Games with ZXpand JOYSTICK base
Do You have any photos from the party?RWAP wrote:Ermm - I tried it at the Spectrum is 30 show yesterday

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/
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
Re: Games with ZXpand JOYSTICK base
I was too busy to take photos - there will be lots on world of Spectrum !
Rich Mellor
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module
Also Involved in:
Icephorm
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module
Also Involved in:
Icephorm
Re: Games with ZXpand JOYSTICK base
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
http://www.fruitcake.plus.com/Sinclair/ ... hanism.htm
Rich Mellor
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module
Also Involved in:
Icephorm
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module
Also Involved in:
Icephorm
- 1024MAK
- Posts: 5526
- Joined: Mon Sep 26, 2011 10:56 am
- Location: Looking forward to summer in Somerset, UK...
- Contact:
Re: Games with ZXpand JOYSTICK base
Kong http://www.fruitcake.plus.com/Sinclair/ ... 0_Kong.htm has Kempston joystick support.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
And from ftp://ftp.worldofspectrum.org/pub/sincl ... erface.pdfThe 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.
The interface fits onto the Spectrum’s edge connector at the rear of the computer.
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 ZeddyThe interface has a 23 way connector so it can be used behind the ZX printer if required.

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Amp
Standby alert 
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Spring approaching...
ZX81 Chip Pin-outs
ZX81 Video Transistor Amp


There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb

Spring approaching...
Re: Games with ZXpand JOYSTICK base
Ah but they don't work with the ZXpand Joystick....
Rich Mellor
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module
Also Involved in:
Icephorm
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module
Also Involved in:
Icephorm