diff options
author | iximeow <me@iximeow.net> | 2021-05-07 18:29:35 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-05-07 18:29:59 -0700 |
commit | 12ee099cad10cf93948239bb4b44966d60ffc8af (patch) | |
tree | dbe5b94f6d543b72cc3efd308d3c3d08cd5928ae /src/main.rs | |
parent | 0fc30830f76685f32b2c1469691efdf3104f8e6e (diff) |
add 6502 support via yaxpeax-6502, update other decoders, yaxpeax-arch to 0.0.50.2.4
yaxdis should now work on Windows?
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 99d7ad3..f577a42 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,7 +18,7 @@ fn main() { .takes_value(true) .validator(|a| { if ["x86_64", "x86:32", "ia64", "armv7", "armv8", "avr", "mips", "msp430", - "pic17", "pic18", "m16c"].contains(&&a[..]) || + "pic17", "pic18", "m16c", "6502"].contains(&&a[..]) || (["sh", "sh2", "sh3", "sh4", "j2"].contains( &&a[0..a.find(|c| c == '+' || c == '-').unwrap_or(a.len())]) && a.split(|c| c == '+' || c == '-').skip(1).all( @@ -26,7 +26,7 @@ fn main() { Ok(()) } else { Err("possible values: x86_64, x86:32, ia64, armv7, armv8, avr, mips, \ - msp430, pic17, pic18, m16c, \ + msp430, pic17, pic18, m16c, 6502, \ {sh{,2,3,4},j2}[[+-]{be,mmu,fpu,f64,j2}]*" .to_string()) } @@ -95,6 +95,7 @@ fn main() { "pic17" => decode_input::<yaxpeax_pic17::PIC17>(&buf, verbose), "pic18" => decode_input::<yaxpeax_pic18::PIC18>(&buf, verbose), "m16c" => decode_input::<yaxpeax_m16c::M16C>(&buf, verbose), + "6502" => decode_input::<yaxpeax_6502::N6502>(&buf, verbose), // "pic24" => decode_input::<yaxpeax_pic24::PIC24>(buf), other => { let seg_idx = arch_str.find(|c| c == '+' || c == '-').unwrap_or(arch_str.len()); |