Jump to content
IGNORED

Lz4 depacking into banks


Recommended Posts

I wanted to adapt lz4 depacker for depacking into banks. Right now I have adapted the store byte part where it checks if more than 16k were written and if so it would switch the bank.

 

So read byte I would switch to XL ram and at store byte I would switch to one of the banks.

 

It does not work but does the LZ4 rely on data which might be stored in another bank?

 

The packed file is less than 6k but depacked several banks.

 

Workaround at the moment split the file into 16k chunks and pack/depack those separately.

Link to comment
Share on other sites

pirx... right now I have a 64k source file, split that into 16k chunks and pack them separatly with LZ4.

 

so I run the depack routine 4x and set bank prior.

 

but can lz4 depacker not altered to depack automaticly into separate banks ("INC BANK" when window crossed)?

Link to comment
Share on other sites

You might be better off just considering as if you're addressing a 64K area, ie extended Ram. Then do the appropriate bit manipulations to set the bank and base address for each access.

Though the problem with doing that is you'd be adding a lot of processing time to the depack operation.

Link to comment
Share on other sites

The format of the compressed data does not include the information in which the bank references the source, and you can not change the destination address, so you can not go back to the beginning of $4000 during decompression.

 

The easiest way is to compress the 16KB pieces and merge them into one file

 

http://xxl.atari.pl/lz4-decompressor/

Link to comment
Share on other sites

You might be better off just considering as if you're addressing a 64K area, ie extended Ram. Then do the appropriate bit manipulations to set the bank and base address for each access.

Though the problem with doing that is you'd be adding a lot of processing time to the depack operation.

Thinking more about it that could work, too?

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...
 Share

  • Recently Browsing   0 members

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