mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-12-13 16:28:03 +00:00
Fixed TMS320C64x failed to print instructions (#1367)
This commit is contained in:
parent
66a2efb7da
commit
9fad58fc81
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user