XipZ
Mini packer ▶►▸ for small programs.
|
Crunching and writing stub for qadz. More...
Go to the source code of this file.
Functions | |
std::vector< uint8_t > | crunch_qadz (const Data &data) |
std::ostream & | write_qadz_stub (std::ostream &out, uint16_t size, uint16_t loadaddr, uint16_t jmp) |
write the decrunch stub More... | |
Crunching and writing stub for qadz.
Definition in file qadz.hh.
std::vector<uint8_t> crunch_qadz | ( | const Data & | data | ) |
std::ostream& write_qadz_stub | ( | std::ostream & | out, |
uint16_t | size, | ||
uint16_t | loadaddr, | ||
uint16_t | jmp | ||
) |
write the decrunch stub
The decrunching stub is written and all parameters like decrunching address and jump address are adjusted. Please take care to adjust all the defines above otherwise the code will probably just crash. It may also fry your cat so be careful!
out | output stream to write to |
size | number of compressed bytes |
loadaddr | original load address of the data |
jmp | jump address to jump after decrunching |