rrs_lib::process_instruction

Function process_instruction

Source
pub fn process_instruction<T: InstructionProcessor>(
    processor: &mut T,
    insn_bits: u32,
) -> Option<T::InstructionResult>
Expand description

Decodes instruction in insn_bits calling the appropriate function in processor returning the result it produces.

Returns None if instruction doesn’t decode into a valid instruction.