2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
|
2008-09-18 03:15:49 +00:00
|
|
|
class CDebugMemoryView :
|
2015-11-06 21:22:02 +00:00
|
|
|
public CDebugDialog < CDebugMemoryView >
|
2008-09-18 03:15:49 +00:00
|
|
|
{
|
2015-11-06 21:22:02 +00:00
|
|
|
public:
|
|
|
|
enum { IDD = IDD_Debugger_Memory };
|
|
|
|
|
|
|
|
CDebugMemoryView(CDebuggerUI * debugger);
|
|
|
|
virtual ~CDebugMemoryView(void);
|
|
|
|
|
|
|
|
void ShowAddress(DWORD Address, bool VAddr);
|
|
|
|
|
|
|
|
private:
|
|
|
|
BEGIN_MSG_MAP_EX(CDebugMemoryView)
|
|
|
|
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
|
|
|
|
COMMAND_CODE_HANDLER(BN_CLICKED, OnClicked)
|
|
|
|
COMMAND_HANDLER_EX(IDC_ADDR_EDIT, EN_CHANGE, OnAddrChanged)
|
|
|
|
NOTIFY_HANDLER_EX(IDC_MEM_DETAILS, LCN_MODIFIED, OnMemoryModified)
|
|
|
|
MSG_WM_DESTROY(OnDestroy)
|
|
|
|
MSG_WM_VSCROLL(OnVScroll)
|
|
|
|
END_MSG_MAP()
|
|
|
|
|
|
|
|
LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
|
|
|
|
LRESULT OnClicked(WORD wNotifyCode, WORD wID, HWND /*hWndCtl*/, BOOL& bHandled);
|
|
|
|
void OnAddrChanged(UINT Code, int id, HWND ctl);
|
|
|
|
void OnVScroll(int request, short Pos, HWND ctrl);
|
|
|
|
LRESULT OnMemoryModified(LPNMHDR lpNMHDR);
|
|
|
|
LRESULT OnDestroy(void);
|
|
|
|
|
|
|
|
void Insert_MemoryLineDump(int LineNumber);
|
|
|
|
void RefreshMemory(bool ResetCompare);
|
|
|
|
|
|
|
|
enum { MemoryToDisplay = 0x100 };
|
|
|
|
|
|
|
|
CEditNumber m_MemAddr;
|
|
|
|
CListCtrl * m_MemoryList;
|
|
|
|
|
|
|
|
DWORD m_DataStartLoc;
|
|
|
|
bool m_DataVAddrr;
|
|
|
|
BYTE m_CurrentData[MemoryToDisplay];
|
|
|
|
bool m_DataValid[MemoryToDisplay];
|
|
|
|
|
|
|
|
DWORD m_CompareStartLoc;
|
|
|
|
bool m_CompareVAddrr;
|
|
|
|
BYTE m_CompareData[MemoryToDisplay];
|
|
|
|
bool m_CompareValid[MemoryToDisplay];
|
2008-09-18 03:15:49 +00:00
|
|
|
};
|