From f25e1b0dfa85023d7ec10bb988e52f634ea4b2a1 Mon Sep 17 00:00:00 2001 From: "Ilya V. Matveychikov" Date: Fri, 20 Jun 2014 11:47:16 +0400 Subject: [PATCH] tms320: fix c55x insn syntax in case of uu field parsing --- libr/asm/arch/tms320/tms320_dasm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libr/asm/arch/tms320/tms320_dasm.c b/libr/asm/arch/tms320/tms320_dasm.c index 7ae3378412..0f09f74b4e 100644 --- a/libr/asm/arch/tms320/tms320_dasm.c +++ b/libr/asm/arch/tms320/tms320_dasm.c @@ -612,8 +612,8 @@ void decode_braces(tms320_dasm_t * dasm) if (field_valid(dasm, uu)) { // first - replace(dasm->syntax, "[uns(]", "%s", field_value(dasm, uu) & 1 ? "uns(" : ""); - replace(dasm->syntax, "[)]", "%s", field_value(dasm, uu) & 1 ? ")" : ""); + replace(dasm->syntax, "[uns(]", "%s", field_value(dasm, uu) & 2 ? "uns(" : ""); + replace(dasm->syntax, "[)]", "%s", field_value(dasm, uu) & 2 ? ")" : ""); replace(dasm->syntax, "[uns(]", "%s", field_value(dasm, uu) & 2 ? "uns(" : ""); replace(dasm->syntax, "[)]", "%s", field_value(dasm, uu) & 2 ? ")" : ""); @@ -622,8 +622,8 @@ void decode_braces(tms320_dasm_t * dasm) replace(dasm->syntax, "[uns(]", "%s", field_value(dasm, uu) & 1 ? "uns(" : ""); replace(dasm->syntax, "[)]", "%s", field_value(dasm, uu) & 1 ? ")" : ""); - replace(dasm->syntax, "[uns(]", "%s", field_value(dasm, uu) & 2 ? "uns(" : ""); - replace(dasm->syntax, "[)]", "%s", field_value(dasm, uu) & 2 ? ")" : ""); + replace(dasm->syntax, "[uns(]", "%s", field_value(dasm, uu) & 1 ? "uns(" : ""); + replace(dasm->syntax, "[)]", "%s", field_value(dasm, uu) & 1 ? ")" : ""); } // remove rudiments