[Coco] String Packing

Allen Huffman alsplace at pobox.com
Wed Jan 24 21:17:58 EST 2018


On Jan 24, 2018, at 8:05 PM, tim franklinlabs.com <tim at franklinlabs.com> wrote:
> 
>   Years ago, I remember using a method in basic to pack a string with
>   extended data such as extended ASCII and binary programs. The data was
>   stored in a string and saved with the program. When the program was
>   loaded, the data was already packed and there was no need to pull it
>   out of a data line.
>   Does anyone remember this technique? And remember how to do it?
> 
>   Just curious... I'm old and can't remember hoe it was done.

I’ve done this manually, but embedding strings and then using PEEK to find them and POKE to replace them with my data. I have a Pac-Man maze that is drawn in ASCII in big data strings, and I went through and changes the ASCII to the VDG character sets, so I could put them on the screen really fast with PRINT.


More information about the Coco mailing list