remove unused debug stuff
This commit is contained in:
parent
40a1a459b3
commit
d1483f9e61
3 changed files with 0 additions and 13 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue