Hacking games to use ZXpand/Chroma/Other joystick

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
User avatar
1024MAK
Posts: 5118
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Hacking games to use ZXpand/Chroma/Other joystick

Post by 1024MAK »

sirmorris wrote: Thu Aug 03, 2017 11:11 am Check the write-protect setting of the files. If a file is write protected ZXpand disables the overlay ROM. Remove the flag and things will work.

I was considering removing this feature because it causes a lot of confusion. My mind is now made up! ByeBye 'feature' :twisted:

*edit*

Code: Select all

        // hack to make programs auto-disable ROM if read-only attribute is set
        if (filinfo.fattrib & AM_RDO)
        {
            flags |= 1;
        }
Removed. The fact it was labelled a hack really says it all.
What was the reason / why was it added in the first place?

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.
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: Hacking games to use ZXpand/Chroma/Other joystick

Post by sirmorris »

I wanted a cheap and cheerful way of specifying whether a program should run with the overlay disabled. I settled on R/O flag as I thought it wouldn't be used often, oh how I was wrong. Some computers evidently automatically set this flag when they write to an SD card..!
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: Hacking games to use ZXpand/Chroma/Other joystick

Post by Andy Rea »

bit OT but what about... instead of a .P file a .X file exactly the same in every way except the extension ? that way people can rename the file they want to auto disable the overlay

just a thought...

just studying the asm for your patcher, hping to learn some tricks from the master :lol:

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: Hacking games to use ZXpand/Chroma/Other joystick

Post by sirmorris »

.X :shock: genius!
User avatar
1024MAK
Posts: 5118
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Hacking games to use ZXpand/Chroma/Other joystick

Post by 1024MAK »

You two make me :lol:

Okay, as you are... (meaning keep going with the new developments ;) )

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.
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: Hacking games to use ZXpand/Chroma/Other joystick

Post by sirmorris »

.XP perhaps - the smiley for a loud raspberry!
User avatar
Paul
Posts: 1517
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: Hacking games to use ZXpand/Chroma/Other joystick

Post by Paul »

How about .POO
Like PfileOverlayOff?

:mrgreen:
In theory, there is no difference between theory and practice. But, in practice, there is.
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: Hacking games to use ZXpand/Chroma/Other joystick

Post by sirmorris »

:lol: You're not helping the clichéd view that the German sense of humour is scatalogically based :lol:
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: Hacking games to use ZXpand/Chroma/Other joystick

Post by Andy Rea »

.USR

Use Standard Rom

:lol:
what's that Smell.... smells like fresh flux and solder fumes...
ilyad731214
Posts: 15
Joined: Thu Jul 27, 2017 9:43 am

Re: Hacking games to use ZXpand/Chroma/Other joystick

Post by ilyad731214 »

sirmorris wrote: Wed Aug 02, 2017 9:32 am Your poke finding techniques should be a good place to start. As would address 22411 ($578B) which is the entry point to the machine code from the BASIC loader.

It looks like a nicely structured program.
disass.png

I'm guessing that one of these calls would be for reading the keyboard, one for updating enemies, landscape etc. Game stuff, you know.

So breakpoints will be added at each of the entry addresses. I don't want to have to step through if I don't have to. I might check out the call that has the LD HL,.. first - because that looks suspiciously keyboardish to me.

bingo!

bingo.png
Hi
Can you describe me how to do a step by step assembly directory listing? How do you make these prints?
ZX-81, ZX-Pand AY, 48k "Rubber", 48K+, 128K + "Toastrack", +2 "grey" 1024k Profi, Masakrator FM, DivIDE 2K11, ZX Evolution rev. C, ZX-Uno, C64, C16 64K, Plus4 + 1541 Ultimate II + SD2IEC
Post Reply