TrueRWAP wrote:Ah but they don't work with the ZXpand Joystick....
AAARRRRGGGGGHHHHHH!!!!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...
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).
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 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.
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?
This one also doesn't work.sirmorris wrote:Seeing as I was busy with that kind of thing;
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?
On Windows it writes stuff like mentioned above, but just for test I put both P files in one folder on ZX81. No joystick.
- Run the patch
Yes. This sounds much more simple.
I will do it tomorrow.
Thx a lot!