mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-05 08:10:10 +01:00
How to use the instruction editor: 1. Load an .ELF file 2. Select an instruction from any valid memory address inside any thread. 3. Press 'E' key and have fun. :P Note1: I suggest to remove the function InterpreterDisAsmFrame::DClick and use InterpreterDisAsmFrame::InstrKey to do all debugging-related actions (Add breakpoint, Edit, Step, Run, etc.) using the same keyboard layout as debuggers like OllyDbg. Note2: The final binary is 200 KB larger due to this feature. This issue should be fixed in the future. This has probably something to do with the #include's.
24 lines
525 B
C++
24 lines
525 B
C++
#pragma once
|
|
#include "Emu/Cell/PPCThread.h"
|
|
#include "Emu/Cell/PPUDecoder.h"
|
|
#include "Emu/Cell/PPUDisAsm.h"
|
|
#include "Emu/Cell/SPUDecoder.h"
|
|
#include "Emu/Cell/SPUDisAsm.h"
|
|
|
|
class InstructionEditorDialog
|
|
: public wxDialog
|
|
{
|
|
u64 pc;
|
|
PPC_DisAsm* disasm;
|
|
PPC_Decoder* decoder;
|
|
wxTextCtrl* t2_instr;
|
|
wxStaticText* t3_preview;
|
|
|
|
public:
|
|
PPCThread* CPU;
|
|
|
|
public:
|
|
InstructionEditorDialog(wxPanel *parent, u64 _pc, PPCThread* _CPU, PPC_Decoder* _decoder, PPC_DisAsm* _disasm);
|
|
|
|
void updatePreview(wxCommandEvent& event);
|
|
}; |