spu/ppu-diasm: Fixup for #6772, #6722

This commit is contained in:
Eladash 2019-10-16 06:50:09 +03:00 committed by Ivan
parent 0fe46934de
commit 47c3d945aa
2 changed files with 8 additions and 2 deletions

View File

@ -71,6 +71,7 @@ constexpr std::pair<const char*, char> get_BC_info(u32 bo, u32 bi)
case 0x3: info.first = "bns"; break;
default: ASSUME(0); break;
}
break;
}
case 0b00110:
{
@ -83,6 +84,7 @@ constexpr std::pair<const char*, char> get_BC_info(u32 bo, u32 bi)
case 0x3: info.first = "bns"; break;
default: ASSUME(0); break;
}
break;
}
case 0b00111:
{
@ -95,6 +97,7 @@ constexpr std::pair<const char*, char> get_BC_info(u32 bo, u32 bi)
case 0x3: info.first = "bns"; break;
default: ASSUME(0); break;
}
break;
}
case 0b01100:
{
@ -106,6 +109,7 @@ constexpr std::pair<const char*, char> get_BC_info(u32 bo, u32 bi)
case 0x3: info.first = "bso"; break;
default: ASSUME(0); break;
}
break;
}
case 0b01110:
{
@ -118,6 +122,7 @@ constexpr std::pair<const char*, char> get_BC_info(u32 bo, u32 bi)
case 0x3: info.first = "bso"; break;
default: ASSUME(0); break;
}
break;
}
case 0b01111:
{
@ -130,6 +135,7 @@ constexpr std::pair<const char*, char> get_BC_info(u32 bo, u32 bi)
case 0x3: info.first = "bso"; break;
default: ASSUME(0); break;
}
break;
}
//case 0b10100:
//{

View File

@ -148,11 +148,11 @@ private:
using field_de_t = decltype(spu_opcode_t{}.de);
void DisAsm(std::string op, field_de_t de, const char* a1)
{
Write(fmt::format("%s%s %s", FixOp(op).c_str(), BrIndirectSuffix(de), a1));
Write(fmt::format("%s %s", FixOp(op.append(BrIndirectSuffix(de))).c_str(), a1));
}
void DisAsm(std::string op, field_de_t de, const char* a1, const char* a2)
{
Write(fmt::format("%s%s %s", FixOp(op).c_str(), BrIndirectSuffix(de), a1, a2));
Write(fmt::format("%s %s", FixOp(op.append(BrIndirectSuffix(de))).c_str(), a1, a2));
}
public: