News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_SRS

Save Space in BASIC programms with just a simple poke

Started by SRS, 20:54, 31 May 16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SRS

For those of you that did not know this - I just found it today and got an adventure from 32 to 30k with just one POKE. Incredible !

Source -> http://tj.gpa.free.fr/html/coding/cpc_ram.htm

Load your BASIC program. (Example : "prog.bas")


save"prog",A
POKE &AC00,&FF
load"prog"
save"prog.bas"


and READY !


TFM

Well, an program saves as ascii is always longer than save in BASIC format, because BASIC is precompiled. What does the poke do?

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

TotO

This POKE allow to remove the useless spaces from a loaded ASCII file.
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

TFM

Quote from: TotO on 21:47, 31 May 16
This POKE allow to remove the useless spaces from a loaded ASCII file.


Well, nobody should put them in, in the first place.  8)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

SRS

There may be sources out there that have those spaces - so why should I remove the spaces manually while converting the games if a simple poke does the work for me :)
As an engineer I tend to be lazy and try to use automated solutions for manual work ;)

Powered by SMFPacks Menu Editor Mod