mirror of
https://github.com/exoticorn/microw8.git
synced 2026-01-20 11:16:42 +01:00
add uw8 pack command
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user