mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
16 lines
319 B
C++
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);
|
|
}
|
|
}
|
|
}
|