Jump to content
IGNORED

ZX1 - decompressor


xxl

Recommended Posts

Hi!

 

1 hour ago, xxl said:

https://github.com/einar-saukas/ZX1

 

 

soon on the website I will add sources for use

https://xxl.atari.pl/

 

 

conan.gfx:  7680

 

ZX0: 1625
ZX1: 1671
ZX5: 1532

zx1-gfx.obx 1.94 kB · 1 download

Great.

 

Note that my ZX02 variation should be much faster, and also the decoder is smaller. (138 bytes including initialization).

 

Have Fun!

  • Like 3
Link to comment
Share on other sites

Hi!

12 hours ago, xxl said:

very good idea, zx1 could also be truncated to use 8-bit registers only

 

I made a new release that adds the ZX01 "based" compression format, download at: https://github.com/dmsc/zx02/releases/

 

For your "conan.gfx" file, those are the stats:

 

Compressor Size
ZX0 1625
ZX1 1671
ZX02 1629
ZX02 -1

1675

 

I wrote two decompressors in 6502, one "as small as possible", another "balanced", those are the sizes (bytes) and speeds (cycles/bytes):

 

Format Type Size Speed
ZX02 Small 130 72.6
ZX02 Optimized 138 58.0
ZX02 Fast 175 48.1
ZX02 -1 Small 131 56.0
ZX02 -1 Optimized 144 70.6

 

The sizes include all initialization, and the speed is measured in 6502 cycles, so lower number is faster.

 

As you see, the ZX1 format does not make a big difference, and the decompressor sizes are bigger, so I'm not sure it is worth the effort.

 

You can try to make the code smaller, those are the assembly sources: https://github.com/dmsc/zx02/blob/main/6502/zx102-optim.asm and https://github.com/dmsc/zx02/blob/main/6502/zx102-small.asm

 

Have Fun!

  • Like 5
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...