We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa28352 commit 09bbc53Copy full SHA for 09bbc53
src/obj/mips.rs
@@ -38,9 +38,9 @@ pub fn process_code(
38
let branch_dest =
39
if is_branch { Some((cur_addr as i32 + branch_offset) as u32) } else { None };
40
41
- println!("{:?}", instruction.get_operands_slice());
42
- let mut args = Vec::new();
43
- for op in instruction.get_operands_slice() {
+ let operands = instruction.get_operands_slice();
+ let mut args = Vec::with_capacity(operands.len() + 1);
+ for op in operands {
44
match op {
45
OperandType::cpu_immediate
46
| OperandType::cpu_label
0 commit comments