project64/Source/Project64/UserInterface/Debugger/DMALog.h

36 lines
1.4 KiB
C
Raw Normal View History

2017-08-18 05:08:22 +00:00
/****************************************************************************
* *
* Project64 - A Nintendo 64 emulator. *
* 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
#include <stdafx.h>
struct DMALOGENTRY
{
2017-09-13 10:36:03 +00:00
uint32_t romAddr;
uint32_t ramAddr;
uint32_t length;
2017-08-18 05:08:22 +00:00
};
class CDMALog
{
private:
2017-09-13 10:36:03 +00:00
vector<DMALOGENTRY> m_Log;
2017-08-18 05:08:22 +00:00
public:
2017-09-13 10:36:03 +00:00
void AddEntry(uint32_t romAddr, uint32_t ramAddr, uint32_t length);
void ClearEntries();
size_t GetNumEntries();
DMALOGENTRY* GetEntryByIndex(uint32_t index);
DMALOGENTRY* GetEntryByRamAddress(uint32_t ramAddr);
DMALOGENTRY* GetEntryByRamAddress(uint32_t ramAddr, uint32_t* lpRomAddr, uint32_t* lpOffset);
DMALOGENTRY* GetEntryByRomAddress(uint32_t romAddr);
DMALOGENTRY* GetEntryByRomAddress(uint32_t romAddr, uint32_t* lpRamAddr, uint32_t* lpOffset);
2017-08-18 05:08:22 +00:00
};