mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-05 08:10:10 +01:00
Two cellGame functions partially implemented: - cellGameGetParamInt - cellGameGetParamString New debugging features: - Call Stack viewer added - Memory Viewer rewritten (Not finished yet) Modified definition of UNIMPLEMENTED_FUNC to improve compatibility with other compilers: Thanks @krofna Replaced the "Compiler" menu entry with "Tools" and "Memory Viewer" entry added. NOTE: To "quickly" browse the memory using the Memory Viewer you can use the scrollbar. Notice the irony of the word 'quickly' since the memory viewer is actually slow as fuck. I will fix that soon. As you can see, I'd like to add a Raw image viewer in the future in order to "see" textures directly from memory.
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
#pragma once
|
|
#include "Emu/CPU/CPUThread.h"
|
|
#include "Emu/CPU/CPUDecoder.h"
|
|
#include "Emu/CPU/CPUDisAsm.h"
|
|
|
|
class InterpreterDisAsmFrame : public wxPanel
|
|
{
|
|
wxListView* m_list;
|
|
CPUDisAsm* disasm;
|
|
CPUDecoder* decoder;
|
|
u64 PC;
|
|
Array<u32> remove_markedPC;
|
|
wxTextCtrl* m_regs;
|
|
wxTextCtrl* m_calls;
|
|
wxButton* m_btn_step;
|
|
wxButton* m_btn_run;
|
|
wxButton* m_btn_pause;
|
|
AppConnector m_app_connector;
|
|
u32 m_item_count;
|
|
wxChoice* m_choice_units;
|
|
|
|
public:
|
|
CPUThread* CPU;
|
|
|
|
public:
|
|
InterpreterDisAsmFrame(wxWindow* parent);
|
|
~InterpreterDisAsmFrame();
|
|
|
|
void UpdateUnitList();
|
|
|
|
u64 CentrePc(const u64 pc) const;
|
|
void OnSelectUnit(wxCommandEvent& event);
|
|
void OnKeyDown(wxKeyEvent& event);
|
|
void OnResize(wxSizeEvent& event);
|
|
void DoUpdate();
|
|
void ShowAddr(const u64 addr);
|
|
void WriteRegs();
|
|
void WriteCallStack();
|
|
|
|
void HandleCommand(wxCommandEvent& event);
|
|
void OnUpdate(wxCommandEvent& event);
|
|
void Show_Val(wxCommandEvent& event);
|
|
void Show_PC(wxCommandEvent& event);
|
|
void DoRun(wxCommandEvent& event);
|
|
void DoPause(wxCommandEvent& event);
|
|
void DoStep(wxCommandEvent& event);
|
|
void InstrKey(wxListEvent& event);
|
|
void DClick(wxListEvent& event);
|
|
|
|
void MouseWheel(wxMouseEvent& event);
|
|
bool IsBreakPoint(u64 pc);
|
|
void AddBreakPoint(u64 pc);
|
|
bool RemoveBreakPoint(u64 pc);
|
|
}; |