2012-11-01 16:19:01 +01:00
|
|
|
// NOTE: Apologies for the quality of this code, this is really from pre-opensource Dolphin - that is, 2003.
|
|
|
|
|
|
|
|
#ifndef _DISASM_H
|
|
|
|
#define _DISASM_H
|
|
|
|
|
|
|
|
#include "../W32Util/DialogManager.h"
|
|
|
|
#include "CtrlDisasmView.h"
|
|
|
|
#include "../../Core/MIPS/MIPSDebugInterface.h"
|
|
|
|
#include "CPURegsInterface.h"
|
|
|
|
#include "../../Globals.h"
|
|
|
|
#include "../../Core/CPU.h"
|
|
|
|
|
2012-11-17 22:44:29 +00:00
|
|
|
#include <windows.h>
|
|
|
|
|
2012-11-01 16:19:01 +01:00
|
|
|
class CDisasm : public Dialog
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
RECT minRect;
|
|
|
|
RECT regRect;
|
|
|
|
RECT disRect;
|
|
|
|
|
|
|
|
DebugInterface *cpu;
|
|
|
|
|
|
|
|
BOOL DlgProc(UINT message, WPARAM wParam, LPARAM lParam);
|
2013-06-26 00:15:16 -07:00
|
|
|
void UpdateSize(WORD width, WORD height);
|
|
|
|
void SavePosition();
|
2012-11-01 16:19:01 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
int index; //helper
|
|
|
|
|
|
|
|
CDisasm(HINSTANCE _hInstance, HWND _hParent, DebugInterface *cpu);
|
|
|
|
~CDisasm();
|
|
|
|
//
|
|
|
|
// --- tools ---
|
|
|
|
//
|
|
|
|
// Update Dialog
|
2013-06-26 21:49:15 +02:00
|
|
|
virtual void Update() { UpdateDialog(true); };
|
2012-11-01 16:19:01 +01:00
|
|
|
void UpdateDialog(bool _bComplete = false);
|
|
|
|
// SetDebugMode
|
|
|
|
void SetDebugMode(bool _bDebug);
|
|
|
|
// show dialog
|
|
|
|
void Goto(u32 addr);
|
|
|
|
void NotifyMapLoaded();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|