Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romhack/5a569b976aa2b1ba9de4c4c61af66d20 to your computer and use it in GitHub Desktop.
Save romhack/5a569b976aa2b1ba9de4c4c61af66d20 to your computer and use it in GitHub Desktop.
2463 - Battle B-Daman (U) gfx compression format
1 11111 YY YYYYYYYY OOOOOOOO OOOOOOOO
| | | |
| | | 16 bit lz offset
| | lz decompress length
| signifies LZ copy
compression flag
1 YYYYY XX XXXXXXXX AAAAAAAA...
| | | |
| | | chunk to repeat
| | rle decompress length
| chunk size (if 0, you repeat next 1 byte, 1: repeat next word, etc.)
compression flag
0 YYYYYYY AAAAAAAA...(bytes to copy)
| |
| |
| copy length
non-compression flag
00000000
|
end of compressed block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment