mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 19:01:31 +00:00
tms320: fix c55x insn syntax in case of uu field parsing
This commit is contained in:
parent
172818b1ed
commit
f25e1b0dfa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user