fn find_next_inst(i: usize, asm: &Vec<ASMInst>) -> Option<usize> {
        if i >= asm.len() - 1 {
            None
        } else {
            let mut cur = i + 1;
            while cur < asm.len() {
                if !asm[cur].is_symbol {
                    return Some(cur);
                }

                cur += 1;
            }

            None
        }
    }
/// finds the next instruction (skip non-instruction assembly)
finds the next instruction (skip non-instruction assembly)
finds the next instruction ( skip non - instruction assembly )
fn find_next_inst(i: usize, asm: &Vec<ASMInst>) -> Option<usize> {
        if i >= asm.len() - 1 {
            None
        } else {
            let mut cur = i + 1;
            while cur < asm.len() {
                if !asm[cur].is_symbol {
                    return Some(cur);
                }
                cur += 1;
            }
            None
        }
    }
fn find_next_inst ( i : usize , asm : & Vec < ASMInst > ) -> Option < usize > { if i >= asm . len ( ) - 1 { None } else { let mut cur = i + 1 ; while cur < asm . len ( ) { if ! asm [ cur ] . is_symbol { return Some ( cur ) ; } cur += 1 ; } None } }
finds the next instruction (skip non-instruction assembly)
finds the next instruction ( skip non - instruction assembly )
i
usize
asm
&Vec<ASMInst>
i
usize
asm
&Vec<ASMInst>