mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-01 22:30:08 +01:00
* Use 2 points of known true RSX code roots and follow them in order to peek at the current section of valid RSX code: These roots are: current RSX instruction address and the last targeted address by a branch instruction.
20 lines
494 B
C++
20 lines
494 B
C++
#pragma once
|
|
|
|
#include "Emu/Cell/PPCDisAsm.h"
|
|
|
|
class RSXDisAsm final : public CPUDisAsm
|
|
{
|
|
public:
|
|
RSXDisAsm(cpu_disasm_mode mode, const u8* offset, u32 start_pc, const cpu_thread* cpu) : CPUDisAsm(mode, offset, start_pc, cpu)
|
|
{
|
|
}
|
|
|
|
private:
|
|
void Write(std::string_view str, s32 count, bool is_non_inc = false, u32 id = 0);
|
|
|
|
public:
|
|
u32 disasm(u32 pc) override;
|
|
std::pair<const void*, usz> get_memory_span() const override;
|
|
std::unique_ptr<CPUDisAsm> copy_type_erased() const override;
|
|
};
|