diff options
author | iximeow <me@iximeow.net> | 2020-03-23 00:53:52 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-03-23 00:53:52 -0700 |
commit | 429edb71087f6af043ada99f90d67ca1fb3c97ec (patch) | |
tree | ee070d10007c696d2c6223c8f2fe5171c0d64d01 /src | |
parent | 94829ff0df849d06913273d628fc579aee220a31 (diff) |
update yaxpeax-dis decoders plus x86:32 decoding
Diffstat (limited to 'src')
-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 b59ebb2..62fd390 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ fn main() { .short("a") .long("--architecture") .takes_value(true) - .possible_values(&["x86_64", "armv7", "armv8", "mips", "msp430", "pic17", "pic18", "m16c"]) + .possible_values(&["x86_64", "x86:32", "armv7", "armv8", "mips", "msp430", "pic17", "pic18", "m16c"]) .help("architecture to disassemble input as.")) /* .arg(Arg::with_name("file") @@ -36,7 +36,8 @@ fn main() { let verbose = matches.occurrences_of("verbose") > 0; match arch_str { - "x86_64" => decode_input::<yaxpeax_x86::x86_64>(buf, verbose), + "x86_64" => decode_input::<yaxpeax_x86::long_mode::Arch>(buf, verbose), + "x86:32" => decode_input::<yaxpeax_x86::protected_mode::Arch>(buf, verbose), "armv7" => decode_input::<yaxpeax_arm::armv7::ARMv7>(buf, verbose), "armv8" => decode_input::<yaxpeax_arm::armv8::a64::ARMv8>(buf, verbose), "mips" => decode_input::<yaxpeax_mips::MIPS>(buf, verbose), |