From c6e83fec1897b5ec5d9ecd7c735f0f01c23ec7b8 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 13 Apr 2025 22:11:30 -0700 Subject: hexagon (and 0.2.12) --- CHANGELOG | 3 +++ Cargo.lock | 13 ++++++++++++- Cargo.toml | 3 ++- src/main.rs | 3 +++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 53fea0b..db554c3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +## 0.2.12 +* add hexagon + ## 0.2.11 * yaxpeax-x86 to 2.0 diff --git a/Cargo.lock b/Cargo.lock index 3650d8c..7f268f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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" diff --git a/Cargo.toml b/Cargo.toml index 42372f4..9ea0fa1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yaxpeax-dis" -version = "0.2.11" +version = "0.2.12" authors = ["iximeow "] 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::(&buf, &printer), SM83 => arch_02::decode_input::(&buf, &printer), RX => arch_02::decode_input::(&buf, &printer), + Hexagon => arch_03::decode_input::(&buf, &printer), // PIC24 => decode_input::(buf), SuperH(decoder) => arch_02::decode_input_with_decoder::(decoder, &buf, &printer), } -- cgit v1.1