2015-08-26 04:54:06 +02:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "SPUAnalyser.h"
|
|
|
|
|
|
2018-06-28 13:03:25 +02:00
|
|
|
template <>
|
|
|
|
|
void fmt_class_string<spu_iname::type>::format(std::string& out, u64 arg)
|
2015-08-26 04:54:06 +02:00
|
|
|
{
|
2018-06-28 13:03:25 +02:00
|
|
|
// Decode instruction name from the enum value
|
|
|
|
|
for (u32 i = 0; i < 10; i++)
|
2015-08-26 04:54:06 +02:00
|
|
|
{
|
2018-06-28 13:03:25 +02:00
|
|
|
if (u64 value = (arg >> (54 - i * 6)) & 0x3f)
|
2016-06-05 12:14:20 +02:00
|
|
|
{
|
2018-06-28 13:03:25 +02:00
|
|
|
out += static_cast<char>(value + 0x20);
|
2016-06-05 12:14:20 +02:00
|
|
|
}
|
2015-08-26 04:54:06 +02:00
|
|
|
}
|
|
|
|
|
}
|