Page 1 of 1

shorten basic files saved to wespi

Posted: Tue Feb 13, 2024 8:47 pm
by msknight
I've been saving files out to the wespi, but even short programs are coming out at over 1k with what seem to be lots of empty lines... well, 76H and thirty two 00H. Obviously, I can't then transfer these to a TZXDuino to load them in via ear on a new 1k zeddy.

I'm presuming that there is already a tool to take these out of a file?

Also, is there a program to view a P file in human readable format please?

Re: shorten basic files saved to wespi

Posted: Tue Feb 13, 2024 9:01 pm
by Paul
If you want to make files for the 1k ZX81 its a good idea to lower RAMTOP before programming.
This way you get a collapsed DFile

Re: shorten basic files saved to wespi

Posted: Tue Feb 13, 2024 9:10 pm
by msknight
Ah. Thanks. Also noted ... before... programming :-) So there's no way to reduce a file already created?

(I've already tried cutting out those seemingly empty lines, but that failed to load)

Re: shorten basic files saved to wespi

Posted: Tue Feb 13, 2024 9:26 pm
by msknight
So I use this... yes?

POKE 16388,0
POKE 16389,68
CLEAR

Re: shorten basic files saved to wespi

Posted: Wed Feb 14, 2024 6:25 am
by Paul
I haven't checked the poke.
But you have to execute NEW instead of clear.
There is a way to reduce it without retyping:
Reduce RAMTOP to 2K and new.
Now you can load from wespi.
After this execute CLS, then save again.
The ZX81 collapses the screen if less than (not exactly shure) 3K of RAM is available.
With 2K you are on the safe side.

Re: shorten basic files saved to wespi

Posted: Thu Feb 15, 2024 2:05 am
by XavSnap
Compressed D_File:
https://www.sinclairzxworld.com/viewtop ... 301#p54301

In VB81 XuR, 9999 SAVE"P.TXT"
Or "ZXtocken", PtoText ...