cc65 text compression: PrintTok

1 post / 0 new
Offline
Last seen: 6 hours 33 min ago
Joined: Nov 12 2022 - 16:50
Posts: 210
cc65 text compression: PrintTok

Hi!  I have a text compression program for cc65 and its CBM, Apple2 and Atari8 targets called PrintTok or PrintTok1.  The CBM community rejecgted it, and I have yet to try Atarians, so I'm coming here.  PrintTok is a program to print out strings compressed using tokenization and helped out the C64 version of my Smir 3, 1 text adventure's database file by about 43.1%.  Its current issues are that it doesn't compress literals and doesn't support automatic compression.  I'm currently working on PrintTok2, but, even though I got it to work several times, the compression ratio was poor.  :(  If you want to help me out, I will post some code snippets and about my techniques here.  For now, PrintTok can be found at c65 additions - Manage /ui at SourceForge.net.  IIRC, version 006 supports up to 64 one-byte and 128 two-byte tokens, and 007 128 of each, and I can add more.  I think that, since the Apple2 only has 128 characters and 007 requires less processing of tokens, 007 is better on an Apple2.  It's also usually better on CBM targets, as capital letters can be rerouted, and graphics and control characters are usually not needed.  If you have any ideas on how to improve PrintTok as it is, just post it here.  :)  If you want to know what I'm doing with PrintTok2, just ask.  Thank you.