This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Technology & Calculator Open Topic subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Math and Science => Technology & Calculator Open Topic
Author Message
Recursive Acronym


Advanced Member


Joined: 11 Dec 2006
Posts: 499

Posted: 28 Mar 2007 09:24:59 pm    Post subject:

I was wondering how exactly data compression worked. I would like to make or use an existing data compression/decompression algorithm to be run on the Z80. I saw an algorithm for "Ion Compress" on WikiTI, but it says that it is untested.

Last edited by Guest on 30 Mar 2007 03:36:17 pm; edited 1 time in total
Back to top
WikiGuru
ADOS (Attention deficit... Oh! Shiny!)


Elite


Joined: 15 Sep 2005
Posts: 923

Posted: 29 Mar 2007 04:03:11 pm    Post subject:

I'm not sure exactly how data compression exactly works, but I think there's an example in Sigma's learn asm in 28 days.
Back to top
Liazon
title goes here


Bandwidth Hog


Joined: 01 Nov 2005
Posts: 2007

Posted: 29 Mar 2007 06:18:48 pm    Post subject:

You could always try writing your own RLE Compression routine.

And iirc, in Day 9 of ASMin28, Sigma is just pointing out that if your max value for a piece of data is less than a byte, than you might as well use only the number of bits you need and squash another piece of data that's less than a byte next to it so you save some bits per data structure, which eventually add up to many bytes.
Back to top
Recursive Acronym


Advanced Member


Joined: 11 Dec 2006
Posts: 499

Posted: 30 Mar 2007 06:57:01 am    Post subject:

I wanted to know how to compress 7-bit ASCII text, so I was thinking about representing each letter as well as 5 common characters with 5 bits, then using the only remaining combination combined with 7 more bits to represent the rest of the character set. RLE also looks possible, but not too promising. What do you think?
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 30 Mar 2007 04:39:20 pm    Post subject:

There are already Pucrunch and Apack compression/decompression methods (c/o Dwedit) you can use that are very effective at compressing text.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement