-
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
7,370 additions
and
1,775 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-FileCopyrightText: 2022 Dhruv Maroo <[email protected]> | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
#ifndef RZIL_ANALYSIS_X86_IL_H | ||
#define RZIL_ANALYSIS_X86_IL_H | ||
|
||
#include <rz_lib.h> | ||
#include <rz_analysis.h> | ||
#include <capstone/capstone.h> | ||
#include <capstone/x86.h> | ||
|
||
#define BITS_PER_BYTE 8 | ||
#define GPR_FAMILY_COUNT 10 | ||
|
||
typedef x86_reg X86Reg; | ||
typedef cs_x86_op X86Op; | ||
typedef x86_op_mem X86Mem; | ||
typedef cs_x86 X86Ins; | ||
typedef x86_insn X86InsMnem; | ||
|
||
typedef struct x86_il_instruction_t { | ||
const X86Ins *structure; | ||
X86InsMnem mnem; | ||
} X86ILIns; | ||
|
||
RZ_IPI bool rz_x86_il_opcode(RZ_NONNULL RzAnalysis *analysis, RZ_NONNULL RzAnalysisOp *aop, ut64 pc, RZ_BORROW RZ_NONNULL const X86ILIns *ins); | ||
RZ_IPI RzAnalysisILConfig *rz_x86_il_config(RZ_NONNULL RzAnalysis *analysis); | ||
|
||
#endif /* RZIL_ANALYSIS_X86_IL_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.