Skip to content

Commit 43c83dc

Browse files
radaretrufae
authored andcommitted
Fix asm.pseudo for archs with dots ##disasm
1 parent c20856d commit 43c83dc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

libr/arch/p/tricore/pseudo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static bool replace(int argc, char *argv[], char *newstr) {
3434
{ "mov", "# = #", {1, 2}},
3535
{ "sha", "# = #", {1, 2}},
3636
{ "lea", "# = #", {1, 2}},
37-
{ "nop", ";", {}},
37+
{ "nop", ";"},
3838
{ "jnz.t", "if (#) goto loc_#", {1, 2}},
3939
{ "jnz", "if (#) goto loc_#", {1, 2}},
4040
{ "jla", "if (la) goto loc_#", {1}},
@@ -60,8 +60,8 @@ static bool replace(int argc, char *argv[], char *newstr) {
6060
{ "add", "# = # + #", {1, 2, 3}},
6161
{ "and", "# &= #", {1, 2}},
6262
{ "or", "# = # | #", {1, 2, 3}},
63-
{ "isync", "", {}},
64-
{ "dsync", "", {}},
63+
{ "isync", ""},
64+
{ "dsync", ""},
6565
{ "st.w", "# = #", {1, 2}},
6666
{ "st.h", "# = #", {1, 2}},
6767
{ "st.bu", "# = #", {1, 2}},

libr/asm/parse.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ R_API bool r_parse_use(RParse *p, const char *name) {
146146
return false;
147147
}
148148
}
149+
return false;
149150
}
150-
return false;
151+
return true;
151152
}
152153

153154
// data is input disasm, str is output pseudo

0 commit comments

Comments
 (0)