-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
21 changed files
with
34 additions
and
701 deletions.
There are no files selected for viewing
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -3,8 +3,9 @@ | |
// SPDX-FileCopyrightText: 2015-2018 courk <[email protected]> | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
#include "../asm/arch/pic/pic_pic18.h" | ||
#include "pic_pic18.h" | ||
#include "pic18_esil.inc" | ||
#include "pic18_il.inc" | ||
|
||
static void pic18_cond_branch(RzAnalysisOp *aop, ut64 addr, const ut8 *buf) { | ||
aop->type = RZ_ANALYSIS_OP_TYPE_CJMP; | ||
|
@@ -19,7 +20,7 @@ static int analysis_pic_pic18_op( | |
|
||
aop->size = 2; | ||
Pic18Op op = { 0 }; | ||
if (!pic18_disasm_op(&op, buf, len)) { | ||
if (!pic18_disasm_op(&op, addr, buf, len)) { | ||
goto err; | ||
} | ||
aop->size = op.size; | ||
|
@@ -219,6 +220,10 @@ static int analysis_pic_pic18_op( | |
pic18_esil(aop, &op, addr, buf); | ||
} | ||
|
||
if (mask & RZ_ANALYSIS_OP_MASK_IL) { | ||
aop->il_op = pic18_il(&op); | ||
} | ||
|
||
return aop->size; | ||
err: | ||
aop->type = RZ_ANALYSIS_OP_TYPE_ILL; | ||
|
File renamed without changes.
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,5 @@ | ||
#include <rz_il.h> | ||
|
||
static RzILOpEffect *pic18_il(Pic18Op *op) { | ||
return NULL; | ||
} |
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
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
File renamed without changes.
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.