Page 1 of 1

Re-enable ZXpand after CONFIG "X"

Posted: Mon Sep 30, 2019 12:30 pm
by mrtinb
Sometime you disable ZXpand because some software will not work with it.

However how do you save your work, when ZXpand has been disabled?

If you type these three commands ZXpand will be re-enabled again:

Code: Select all

CLEAR
LET A$="[graphic 1] [graphic E] STEP Y [inverse L] GOSUB"+CHR$ 121+"TAN"
RAND USR PEEK 16400+PEEK 16401*256
(There are no spaces in line 2, and commands are not spelled e.g not T A N but FUNCTION TAN.)

Line 2 will look this before pressing NEWLINE:
Image

Re: Re-enable ZXpand after CONFIG "X"

Posted: Mon Sep 30, 2019 6:51 pm
by FrancoisLanciault
Thank you Martin,

That can be useful. Is it the same code for the zxpand+ ?

François

Re: Re-enable ZXpand after CONFIG "X"

Posted: Mon Sep 30, 2019 7:05 pm
by mrtinb
It’s the same and thank you.

Re: Re-enable ZXpand after CONFIG "X"

Posted: Mon Sep 30, 2019 9:50 pm
by Andy Rea
Nice Trick, Thanks for sharing...

Andy

Re: Re-enable ZXpand after CONFIG "X"

Posted: Tue Oct 01, 2019 12:02 am
by Moggy
Charlie actually showed us this much simpler method some years back, 8 bytes in a REM statement then call as needed.


QUOTE.....


"This should do it.


; re-enable the overlay
ld bc,$e007
ld a,$b1
out (c),a

Here are the hex codes for your favourite hex-code entering system:


01, 07, E0, 3E, B1, ED, 79, C9

and in decimal for the pokers out there:

Code: Select all

1, 7, 224, 62, 177, 237, 121, 201

which are also this week's lottery numbers*.


Full thread here.

https://www.sinclairzxworld.com/viewtop ... =12&t=1007

Re: Re-enable ZXpand after CONFIG "X"

Posted: Tue Oct 01, 2019 6:26 am
by mrtinb
Yes. That’s the bytes I’m using.

But having a file to load is not helping much, when the ZXpand is disabled.

That’s why I recreated it as a short type-in.

Re: Re-enable ZXpand after CONFIG "X"

Posted: Tue Oct 01, 2019 3:08 pm
by Moggy
mrtinb wrote: Tue Oct 01, 2019 6:26 am Yes. That’s the bytes I’m using.

But having a file to load is not helping much, when the ZXpand is disabled.

That’s why I recreated it as a short type-in.
Just poke the 8 bytes into a rem as part of your work to be saved, call it then save, works for me.