Fixed TMS320C64x failed to print instructions (#1367)

This commit is contained in:
david942j 2019-02-05 23:34:33 +08:00 committed by Nguyen Anh Quynh
parent 66a2efb7da
commit 9fad58fc81

View File

@ -68,13 +68,13 @@ void TMS320C64x_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
SStream_concat0(&ss, insn_asm);
if ((p != NULL) && (((p2 = strchr(p, '[')) != NULL) || ((p2 = strchr(p, '(')) != NULL))) {
while ((p2 > p) && ((*p2 != 'A') && (*p2 != 'B')))
while ((p2 > p) && ((*p2 != 'a') && (*p2 != 'b')))
p2--;
if (p2 == p) {
strcpy(insn_asm, "Invalid!");
return;
}
if (*p2 == 'A')
if (*p2 == 'a')
strcpy(tmp, "1T");
else
strcpy(tmp, "2T");