Page 5 of 7

Re: Games with ZXpand JOYSTICK base

Posted: Tue Sep 18, 2012 5:20 pm
by 1024MAK
RWAP wrote:Ah but they don't work with the ZXpand Joystick....
True :lol:

Re: Games with ZXpand JOYSTICK base

Posted: Tue Sep 25, 2012 1:45 pm
by bobs
RWAP wrote: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...
AAARRRRGGGGGHHHHHH!!!! :lol:

I'll try and refactor MinerMan to move the initial polling of the joystick to somewhat earlier in the code, so it has a good couple of 100 t-states at least in which to do its stuff. (From a programming point-of-view this is all rather a pain, but I guess there are hardware-type reasons why this is as it is).

Re: Games with ZXpand JOYSTICK base

Posted: Tue Sep 25, 2012 2:55 pm
by sirmorris
:oops: Sorry for any inconvenience - I should have thought of the effect of adding more command code in between the initial poll and the execution of the interface joystick code :oops:

C

Re: Games with ZXpand JOYSTICK base

Posted: Fri Oct 05, 2012 4:43 pm
by yerzmyey
sirmorris wrote:I'm trying something new here. Normally I'd release a patched P file but this time I've implemented something that I've been thinking about for a while. Rising to the challenge (bait?) of Yerzmyey one more time may I present:
INVASION FORCE ZXPAND JOYSTICK PATCHER!
You'll need the copy of invasion force as linked above. Copy the patcher and the original P file into the same location. Run the patch. Simple!
The patcher will install the joystick routines and a loader into RAM at 8K. INVASION.P will then be loaded into memory and the keyboard reading routines redirected so that they call into the new code. At this point the BASIC and machine stacks are fixed up and the newly loaded program is executed :ugeek: The original code on disk (ahem, card) is never altered, only the memory-resident image.
So for the invader-stoppers out there: Use the joystick button to advance through the intro screens; pressing UP will select Expert mode, and DOWN will select Beginner at the appropriate time. All the original keys still work.
I took it upon myself to fix something that I thought spoiled the game a little - and that is the fact you couldn't move and shoot at the same time. If anyone objects to this fix I can either change it permanently so it's original use is preserved, or provide an alternative patcher.
For anyone interested in how this was done, I've also included the source for the patcher and the batch file used to build it.
Enjoy!
Charlie
NOTE: Because I've used loading routines which are only in ROM version 60 and above (PRINT PEEK 7976 will tell you what you have) I'm afraid those with older firmware will have to either update their EPROMs or request a change to the patcher, which I'll consider. I want to move the majority of ZXpand users onto V6+ code so that the useful facilities available in this version can be more widely used. EPROM updates are available for the cost of return postage when the old EPROM is returned. For those that can burn EPROMs themselves the binary is available.

OK, it doesn't work on Windows XP. It displays thousands of informations like: "name 'tasm' isn't recognized as an internal nor external command" and so on.
Maybe I understand You wrong and I should only put both P files on the SD, without doing anything on Windows?

Re: Games with ZXpand JOYSTICK base

Posted: Fri Oct 05, 2012 4:48 pm
by yerzmyey
sirmorris wrote:Seeing as I was busy with that kind of thing;
Here's FUNGALOIDS!
Put the patcher in the same folder as the P and run it (P also attached, in the source folder) - and you can control the ship with the joystick.
Happy ... happy, err funging? :?
C
This one also doesn't work.
On Windows it writes stuff like mentioned above, but just for test I put both P files in one folder on ZX81. No joystick.

Re: Games with ZXpand JOYSTICK base

Posted: Fri Oct 05, 2012 5:32 pm
by sirmorris
For these you just need to put both P files on zxpand. Run the patch and it should auto-magically load and run the game with the patches installed...

C

Re: Games with ZXpand JOYSTICK base

Posted: Fri Oct 05, 2012 9:35 pm
by yerzmyey
- put both P files on zxpand.
- Run the patch
--------------------
Yes. This sounds much more simple.
I will do it tomorrow.
Thx a lot!

Re: Games with ZXpand JOYSTICK base

Posted: Sat Oct 06, 2012 8:06 pm
by yerzmyey
"This patcher requires ZXpand EPROM version 6 or later"
0/70

Re: Games with ZXpand JOYSTICK base

Posted: Sat Oct 06, 2012 9:23 pm
by sirmorris
HHmm. I thought we'd upgraded you at Mahlerts. I'll investigate.

Re: Games with ZXpand JOYSTICK base

Posted: Sat Oct 06, 2012 10:44 pm
by Andy Rea
I think 5.1 was the latest rom version at Mahlerts.... Least thats my excuse for still having a ZXpand with a 5.1 Rom on it....

Andy