Skip to content

Commit

Permalink
Very primitive x86 support through yaxpeax-x86.
Browse files Browse the repository at this point in the history
  • Loading branch information
WINSDK committed Apr 18, 2023
1 parent 99b460d commit 2a4f90a
Show file tree
Hide file tree
Showing 48 changed files with 120,767 additions and 144 deletions.
142 changes: 8 additions & 134 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions decoder-mips/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ enum Format {
pub struct Stream<'data> {
pub bytes: &'data [u8],
pub offset: usize,
pub section_base: usize,
}

pub struct Instruction {
Expand Down
1 change: 1 addition & 0 deletions decoder-mips/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ macro_rules! eq {
let mut stream = $crate::Stream {
bytes: &[$($bytes),+],
offset: 0,
section_base: 0,
};

match stream.next() {
Expand Down
7 changes: 5 additions & 2 deletions decoder-x86_64/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ edition = "2021"

[dependencies]
decoder = { path = "../decoder" }
# remove serde flag when `https://github.com/iximeow/yaxpeax-arch/pull/4` is merged
yaxpeax-x86 = { version = "1.1", features = ["std", "colors", "fmt", "use-serde"], default-features = false }
tokenizing = { path = "../tokenizing" }
yaxpeax-arch = { version = "0.2.7", default-features = false, features = ["std"] }

[dev-dependencies]
rand = "0.8.4"
Loading

0 comments on commit 2a4f90a

Please sign in to comment.