MCPcopy Create free account
hub / github.com/encounter/objdiff / parse_ins_ref

Method parse_ins_ref

objdiff-core/src/arch/mips.rs:193–204  ·  view source on GitHub ↗
(
        &self,
        ins_ref: InstructionRef,
        code: &[u8],
        diff_config: &DiffObjConfig,
    )

Source from the content-addressed store, hash-verified

191 }
192
193 fn parse_ins_ref(
194 &self,
195 ins_ref: InstructionRef,
196 code: &[u8],
197 diff_config: &DiffObjConfig,
198 ) -> Result<rabbitizer::Instruction> {
199 Ok(rabbitizer::Instruction::new(
200 self.endianness.read_u32_bytes(code.try_into()?),
201 Vram::new(ins_ref.address as u32),
202 self.instruction_flags(diff_config),
203 ))
204 }
205}
206
207impl Arch for ArchMips {

Callers 1

display_instructionMethod · 0.45

Calls 1

instruction_flagsMethod · 0.80

Tested by

no test coverage detected