From 12ee099cad10cf93948239bb4b44966d60ffc8af Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 7 May 2021 18:29:35 -0700 Subject: add 6502 support via yaxpeax-6502, update other decoders, yaxpeax-arch to 0.0.5 yaxdis should now work on Windows? --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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::(&buf, verbose), "pic18" => decode_input::(&buf, verbose), "m16c" => decode_input::(&buf, verbose), + "6502" => decode_input::(&buf, verbose), // "pic24" => decode_input::(buf), other => { let seg_idx = arch_str.find(|c| c == '+' || c == '-').unwrap_or(arch_str.len()); -- cgit v1.1