[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compressing ProDOS File Type Table
- Subject: Compressing ProDOS File Type Table
- From: "Jonathyn Bet'nct" <jonrelay@napanet.net>
- Date: Sat, 6 Jul 2002 21:20:14 -0700
- Newsgroups: comp.sys.apple2
- Organization: Newsfeeds.com http://www.newsfeeds.com 80,000+ UNCENSORED Newsgroups.
- Xref: archiver1.google.com comp.sys.apple2:21076
I'm writing a program launcher in assembly language, and I want to have a
table of all 136 defined ProDOS file types (found at
http://www.geocities.com/jonrelay/software/a2info/abftypes.htm) as part of
it.
To keep the program small and simple, I want to compress the table like
BASIC.SYSTEM compresses its keywords (or at least how I _think_ it does).
For example, I can take the types AWP, WPF, PFS, FST, STN, TNJ, JAP, PTX,
TXT, and TOL (totaling 30 bytes) and compress it into AWPFSTNJAPTXTOL (which
is only 15 bytes).
Doing this by hand, the shortest string I came up with was 277 bytes long. I
want one that's 256 bytes or less (so I can fit it in a single page of
memory).
Here's my question: Is there a program out there that can compress strings
this way into the shortest string possible so I don't have to?
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----