rpcsx/rpcs3/Emu/Cell/SPUAnalyser.cpp
Nekotekina 41eab62ed7 Implement spu_iname helper
Remove old code
Report $SP anomalies
2018-07-06 00:33:52 +03:00

16 lines
319 B
C++

#include "stdafx.h"
#include "SPUAnalyser.h"
template <>
void fmt_class_string<spu_iname::type>::format(std::string& out, u64 arg)
{
// Decode instruction name from the enum value
for (u32 i = 0; i < 10; i++)
{
if (u64 value = (arg >> (54 - i * 6)) & 0x3f)
{
out += static_cast<char>(value + 0x20);
}
}
}