printtok/cc65 update: ideas?

6 posts / 0 new
Last post
Offline
Last seen: 5 hours 52 min ago
Joined: Nov 12 2022 - 16:50
Posts: 200
printtok/cc65 update: ideas?

Hi!  I'm working on an update of my printtok.c module that will use a modified version of Infocom's ZSCII technique and tokenization to compress text.  The current version only uses tokenization, is inferior and only helped a text adventure's text by about 13%.  While I'm working on it, does anybody here have any ideas on how I can better compress text such that each string doesn't have to reference a previous string?  

CVT
CVT's picture
Offline
Last seen: 12 hours 34 min ago
Joined: Aug 9 2022 - 00:48
Posts: 982
What is this module and how

What is this module and how is it related to the Apple II?

Offline
Last seen: 5 hours 52 min ago
Joined: Nov 12 2022 - 16:50
Posts: 200
printtok.c is a cc65 C module

printtok.c is a cc65 C module that prints strings with embedded tokens and expands those tokens to full strings.  It currently only works okay--about 13% on one of my text adventures' strings--and requires manual compression.  I have versions for CBM and Atari8 models, but the CBM one should work on an Apple2.  It is at c65 additions - Manage /ui at SourceForge.net.

CVT
CVT's picture
Offline
Last seen: 12 hours 34 min ago
Joined: Aug 9 2022 - 00:48
Posts: 982
I am not sure this is the

I am not sure this is the best forum for what is essentially a C programming question or request for code review. Isn’t there a cc65 forum?

Online
Last seen: 14 min 55 sec ago
Joined: Jul 5 2018 - 09:44
Posts: 2538
CVT wrote:I am not sure this
CVT wrote:

I am not sure this is the best forum for what is essentially a C programming question or request for code review. Isn’t there a cc65 forum?

 

Well, it's kind of on the edge.  cc65 is a programming tool that can target Apple II, so it isn't completely irrelevant, however this question is generic enough it puts it into a grey area.  Its applicability here depends on how specific to Apple II the issue is.  That's why I didn't have a problem with questions related to cc65 generating binaries without the DOS3.3 header for use with ProDOS.  That's clearly Apple II related.  But if this is about a library that is multi-platform then it is less relevant.

 

 

 

Offline
Last seen: 5 hours 52 min ago
Joined: Nov 12 2022 - 16:50
Posts: 200
You're both right.  It is not

You're both right.  It is not Apple2-specific.  However, it should work on an Apple2.  That's why I posted it here.

Log in or register to post comments