Skip to content

Commit

Permalink
v850 rzil #1
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Jan 13, 2024
1 parent f5d26ca commit 436a466
Show file tree
Hide file tree
Showing 7 changed files with 497 additions and 19 deletions.
6 changes: 5 additions & 1 deletion librz/analysis/arch/v850/v850_esil.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2012-2020 pancake <[email protected]>
// SPDX-FileCopyrightText: 2014 Fedor Sakharov <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

static void update_flags(RzStrBuf *out, int flags) {
if (flags & V850_FLAG_CY) {
rz_strbuf_append(out, "31,$c,cy,:=");
Expand Down Expand Up @@ -76,7 +80,7 @@ static void v850_esil(RzStrBuf *out, ut8 opcode, ut16 word1, ut16 word2) {
}
rz_strbuf_appendf(out, "%s,pc,=", F1_RN1(word1));
break;
case V850_JARL2:
case V850_JARL:
// TODO: fix displacement reading
rz_strbuf_appendf(out, "pc,%s,=,pc,%u,+=", F5_RN2(word1), F5_DISP(((ut32)word2 << 16) | word1));
break;
Expand Down
Loading

0 comments on commit 436a466

Please sign in to comment.