diff options
| -rw-r--r-- | CHANGELOG | 3 | ||||
| -rw-r--r-- | Cargo.lock | 13 | ||||
| -rw-r--r-- | Cargo.toml | 3 | ||||
| -rw-r--r-- | src/main.rs | 3 | 
4 files changed, 20 insertions, 2 deletions
| @@ -1,3 +1,6 @@ +## 0.2.12 +* add hexagon +  ## 0.2.11  * yaxpeax-x86 to 2.0 @@ -452,7 +452,7 @@ dependencies = [  [[package]]  name = "yaxpeax-dis" -version = "0.2.11" +version = "0.2.12"  dependencies = [   "clap",   "hex", @@ -463,6 +463,7 @@ dependencies = [   "yaxpeax-arch 0.3.2",   "yaxpeax-arm",   "yaxpeax-avr", + "yaxpeax-hexagon",   "yaxpeax-ia64",   "yaxpeax-lc87",   "yaxpeax-m16c", @@ -477,6 +478,16 @@ dependencies = [  ]  [[package]] +name = "yaxpeax-hexagon" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cb64b4237713368d4a774a3fdcd197b3e0815a30c9fcce6d894d6bd371feaeb" +dependencies = [ + "num-traits", + "yaxpeax-arch 0.3.2", +] + +[[package]]  name = "yaxpeax-ia64"  version = "0.2.1"  source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1,6 +1,6 @@  [package]  name = "yaxpeax-dis" -version = "0.2.11" +version = "0.2.12"  authors = ["iximeow <me@iximeow.net>"]  license = "0BSD"  edition = "2018" @@ -37,3 +37,4 @@ yaxpeax-x86 = { version = "2.0.0", default-features = false, features = ["fmt",  yaxpeax-ia64 = { version = "0.2.1" }  yaxpeax-superh = { version = "1.0.0" }  yaxpeax-6502 = { version = "0.0.2", features = ["std"] } +yaxpeax-hexagon = { version = "0.1.0" } diff --git a/src/main.rs b/src/main.rs index b1ac55d..3bb7756 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,6 +24,7 @@ enum Architecture {      LC87,      SM83,      RX, +    Hexagon,      // PIC24,      SuperH(yaxpeax_superh::SuperHDecoder),  } @@ -60,6 +61,7 @@ impl FromStr for Architecture {              "lc87" => LC87,              "sm83" => SM83,              "rx" => RX, +            "hexagon" => Hexagon,              //        "pic24" => PIC24,              _ => {                  let seg_idx = arch_str.find(&['+', '-'][..]).unwrap_or(arch_str.len()); @@ -144,6 +146,7 @@ fn main() {          LC87 => arch_02::decode_input::<yaxpeax_lc87::LC87>(&buf, &printer),          SM83 => arch_02::decode_input::<yaxpeax_sm83::SM83>(&buf, &printer),          RX => arch_02::decode_input::<yaxpeax_rx::RX>(&buf, &printer), +        Hexagon => arch_03::decode_input::<yaxpeax_hexagon::Hexagon>(&buf, &printer),          //        PIC24 => decode_input::<yaxpeax_pic24::PIC24>(buf),          SuperH(decoder) => arch_02::decode_input_with_decoder::<yaxpeax_superh::SuperH>(decoder, &buf, &printer),      } | 
