diff --git a/src/codegen/fasm.rs b/src/codegen/fasm.rs index 6b270df..75453f1 100644 --- a/src/codegen/fasm.rs +++ b/src/codegen/fasm.rs @@ -79,13 +79,15 @@ impl FasmCodegen { } else { self.use_queue = false; } - let mut register_counter = Box::new(self.register_counter); + let mut register_counter = &self.register_counter; if self.use_queue { println!("self.use_queue"); if let Some(OperationQueue::RegisterCounter(q)) = self.operation_queue.pop() { - register_counter = Box::new(q); + register_counter = &q; } } + + dbg!(*register_counter, self.register_counter, self.use_queue); unwrap!(e.left); self.register_counter += 1;