add uw8 pack command

This commit is contained in:
2021-12-27 22:02:27 +01:00
parent 462dc3a1c6
commit cf0e40a0e5
9 changed files with 183 additions and 122 deletions

View File

@@ -14,9 +14,9 @@ export fn load_uw8(module_size: i32) -> i32 {
} else {
copy(0x1e000, 0, module_size);
}
copy(0, 0x3c800, 8);
copy(0, 0x3c200, 8);
let base_start = 0x3c808;
let base_start = 0x3c208;
let dest = 8;
let src = 0x1e001;
@@ -170,7 +170,7 @@ fn upkr_bit(context_index: i32) -> i32 {
}
start fn unpack_base() {
base_end = uncompress(0, 0x3c800);
base_end = uncompress(0, 0x3c200);
}
data 0 {

View File

@@ -21,7 +21,7 @@ fn main() -> Result<()> {
println!("Compressing platform module");
let platform = uw8_tool::pack(
&platform,
uw8_tool::PackConfig::default().with_compression_level(4),
&uw8_tool::PackConfig::default().with_compression_level(4),
)?;
File::create("bin/platform.uw8")?.write_all(&platform)?;
println!("Platform module: {} bytes", platform.len());