tms320: fix error with c55x SSDD fields decoding

This commit is contained in:
Ilya V. Matveychikov 2014-05-07 02:16:02 +04:00 committed by pancake
parent a8bb021882
commit dfac2f9f0c

View File

@ -801,10 +801,14 @@ void decode_registers(tms320_dasm_t * dasm)
break;
case 0x11: // SS DD
if (field_value(dasm, SS) == field_value(dasm, DD)) {
substitute(dasm->syntax, "[ACx,] ACy", "AC%d", field_value(dasm, SS));
substitute(dasm->syntax, "[, ACy]", "");
substitute(dasm->syntax, "[ACx,] ACy", "ACy");
} else {
substitute(dasm->syntax, "[ACx,] ACy", "AC%d, AC%d", field_value(dasm, SS), field_value(dasm, DD));
substitute(dasm->syntax, "[, ACy]", ", ACy");
substitute(dasm->syntax, "[ACx,] ACy", "ACx, ACy");
}
substitute(dasm->syntax, "ACx", "AC%d", field_value(dasm, SS));
substitute(dasm->syntax, "ACy", "AC%d", field_value(dasm, DD));
break;
case 0x33: // SSSS DDDD
substitute(dasm->syntax, "ACx", "AC%d", field_value(dasm, SS));