rrs_lib

Module instruction_string_outputter

Source
Expand description

An InstructionProcessor that outputs a string of the instruction disassembly

§Example

use rrs_lib;
use rrs_lib::instruction_string_outputter::InstructionStringOutputter;

let mut outputter = InstructionStringOutputter { insn_pc: 0 };

assert_eq!(
    rrs_lib::process_instruction(&mut outputter, 0x07b60893),
    Some(String::from("addi x17, x12, 123"))
);

Structs§