mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-10 21:40:43 +00:00
PPU disasm: print HLE index
This commit is contained in:
parent
d7c66fc949
commit
fb9b09d004
@ -1,5 +1,6 @@
|
|||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "PPUDisAsm.h"
|
#include "PPUDisAsm.h"
|
||||||
|
#include "PPUFunction.h"
|
||||||
|
|
||||||
const ppu_decoder<PPUDisAsm> s_ppu_disasm;
|
const ppu_decoder<PPUDisAsm> s_ppu_disasm;
|
||||||
|
|
||||||
@ -2150,5 +2151,17 @@ void PPUDisAsm::FCFID(ppu_opcode_t op)
|
|||||||
|
|
||||||
void PPUDisAsm::UNK(ppu_opcode_t op)
|
void PPUDisAsm::UNK(ppu_opcode_t op)
|
||||||
{
|
{
|
||||||
|
if (op.opcode == dump_pc && ppu_function_manager::addr)
|
||||||
|
{
|
||||||
|
// HLE function index
|
||||||
|
const u32 index = (dump_pc - ppu_function_manager::addr) / 8;
|
||||||
|
|
||||||
|
if (index < ppu_function_manager::get().size())
|
||||||
|
{
|
||||||
|
Write(fmt::format("Function : (index %u)", index));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Write(fmt::format("Unknown/Illegal opcode! (0x%08x)", op.opcode));
|
Write(fmt::format("Unknown/Illegal opcode! (0x%08x)", op.opcode));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user