ppcdisasm: fix frsp and add tests for it.

This commit is contained in:
Maxim Poliakovski
2021-01-23 02:32:30 +01:00
parent d8f7588693
commit 014eefdf7e
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -1687,8 +1687,12 @@ void opc_group63(PPCDisasmContext* ctx) {
case 12: /* frsp */
if (ra != 0)
opc_illegal(ctx);
else
ctx->instr_str = my_sprintf("%-8s%d, r%d, r%d", "frsp", rs, rb);
else {
strcpy(opcode, "frsp");
if (rc_set)
strcat(opcode, ".");
ctx->instr_str = my_sprintf("%-8sf%d, f%d", opcode, rs, rb);
}
break;
case 14: /* fctiw */
if (ra != 0)