Author Topic: Save Space in BASIC programms with just a simple poke  (Read 2399 times)

0 Members and 1 Guest are viewing this topic.

Offline SRS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 654
  • Country: de
  • Schneider CPC464 - what else ?
    • Awards
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")

Code: [Select]
save"prog",A
POKE &AC00,&FF
load"prog"
save"prog.bas"

and READY !

like
0
No reactions

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
    • Awards
Re: Save Space in BASIC programms with just a simple poke
« Reply #1 on: 23:27, 31 May 16 »
Well, an program saves as ascii is always longer than save in BASIC format, because BASIC is precompiled. What does the poke do?

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

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 4.029
  • Country: fr
    • ?area=showdonations;u=4
    • Awards
Re: Save Space in BASIC programms with just a simple poke
« Reply #2 on: 23:47, 31 May 16 »
This POKE allow to remove the useless spaces from a loaded ASCII file.
like
0
No reactions
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
    • Awards
Re: Save Space in BASIC programms with just a simple poke
« Reply #3 on: 21:17, 01 June 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)
like
0
No reactions
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline SRS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 654
  • Country: de
  • Schneider CPC464 - what else ?
    • Awards
Re: Save Space in BASIC programms with just a simple poke
« Reply #4 on: 12:51, 25 December 16 »
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 ;)
« Last Edit: 20:30, 06 January 20 by SRS »
like
0
No reactions