tms320: fix c55x insn syntax in case of uu field parsing

This commit is contained in:
Ilya V. Matveychikov 2014-06-20 11:47:16 +04:00
parent 172818b1ed
commit f25e1b0dfa

View File

@ -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