Skip to content

Commit 92242b9

Browse files
david942jaquynh
authored andcommitted
Fixed TMS320C64x failed to print instructions (capstone-engine#1367)
1 parent 4b4a848 commit 92242b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/TMS320C64x/TMS320C64xInstPrinter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ void TMS320C64x_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
6868

6969
SStream_concat0(&ss, insn_asm);
7070
if ((p != NULL) && (((p2 = strchr(p, '[')) != NULL) || ((p2 = strchr(p, '(')) != NULL))) {
71-
while ((p2 > p) && ((*p2 != 'A') && (*p2 != 'B')))
71+
while ((p2 > p) && ((*p2 != 'a') && (*p2 != 'b')))
7272
p2--;
7373
if (p2 == p) {
7474
strcpy(insn_asm, "Invalid!");
7575
return;
7676
}
77-
if (*p2 == 'A')
77+
if (*p2 == 'a')
7878
strcpy(tmp, "1T");
7979
else
8080
strcpy(tmp, "2T");

0 commit comments

Comments
 (0)