Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
/ lz4gb Public archive

LZ4 compression / decompression for GameBoy development.

License

Notifications You must be signed in to change notification settings

gitendo/lz4gb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notice

Starting October 12th, 2023 GitHub is enforcing mandatory two-factor authentication on my account.
I'm not going to comply and move all my activity to GitLab instead.
Any future updates / releases will be available at: https://gitlab.com/gitendo/lz4gb
Thanks and see you there!


LZ4GB

My attempt at creating fast and small LZ4 unpacker in LR35902 assembly. Currently it takes 73 bytes and doesn't use RAM/HRAM during the process. This however required some small changes in data format. I've removed header data, reversed the order of match distance and length bytes and shortened end sequence. Also, match distance is stored as negative value from now on.

  • unlz4gb.asm - RGBASM syntax
  • unlz4gb.s - Intelligent Systems assembler syntax

To use it in your project compile modified smalLZ4 from my repo (original by Stephan Brumme) and compress your data using -g option: smallz4 -g data.raw data.lz4 then decompress on GB/C using included source.

If you're interested how it stands compared to other packers visit my Game Boy Compression Playground for more detailed info.

Releases

No releases published

Packages

No packages published