remove unused debug stuff

This commit is contained in:
afonya2 2025-06-03 18:38:37 +02:00
parent 40a1a459b3
commit d1483f9e61
Signed by: afonya
GPG key ID: EBB9C4CAFAAFB2DC
3 changed files with 0 additions and 13 deletions

View file

@ -352,16 +352,12 @@ fn load_func(data: Vec<u8>, offset: &mut usize) -> DecompiledFunction {
*offset += 4;
functions.insert(func_id, func_pos);
}
println!("Variables: {:?}", variables);
println!("Strings: {:?}", strings);
println!("Functions: {:?}", functions);
let mut body: Vec<DecompiledOperation> = Vec::new();
let instr_len: usize = read_be_num(&data[*offset..*offset + 4]);
*offset += 4;
for _ in 0..instr_len {
let op = read_bin(&data[*offset..*offset + 10]);
*offset += 10;
println!("{}", op);
let op_code = bin_to_num(op[0..5].to_string());
let arg1 = bin_to_num(op[5..9].to_string());
let arg2 = bin_to_snum(op[9..73].to_string());
@ -417,7 +413,6 @@ impl Machine {
let func = load_func(data.clone(), &mut offset);
self.functions.push(func);
}
println!("Decompiled: {:?}", self.functions);
}
pub fn run(&mut self) {