pcode 0.1.3

Pure Rust implementation of a p-code disassembler and lifter.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::address::*;
use super::pcode::*;

use std::fmt::{self, Display};

#[derive(Eq, PartialEq, Hash, Clone, Debug)]
pub struct Instruction {
    pub address: Address,
    pub length: u64,
    pub asm: String,
    pub ops: Vec<PcodeOp>,
}

impl Display for Instruction {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.asm)
    }
}