Debugger: Event Viewer - Add PC value to tooltip (displays PC at the start of the current instruction)
This commit is contained in:
parent
c073a37908
commit
16873540f4
4 changed files with 4 additions and 0 deletions
|
@ -1314,6 +1314,7 @@ void Debugger::AddDebugEvent(DebugEventType type, uint16_t address, uint8_t valu
|
|||
_debugEvents.push_back({
|
||||
(uint16_t)_ppu->GetCurrentCycle(),
|
||||
(int16_t)_ppu->GetCurrentScanline(),
|
||||
_cpu->GetDebugPC(),
|
||||
address,
|
||||
breakpointId,
|
||||
type,
|
||||
|
|
|
@ -118,6 +118,7 @@ struct DebugEventInfo
|
|||
{
|
||||
uint16_t Cycle;
|
||||
int16_t Scanline;
|
||||
uint16_t ProgramCounter;
|
||||
uint16_t Address;
|
||||
int16_t BreakpointId;
|
||||
DebugEventType Type;
|
||||
|
|
|
@ -174,6 +174,7 @@ namespace Mesen.GUI.Debugger.Controls
|
|||
{ "Type", ResourceHelper.GetEnumText(debugEvent.Type) },
|
||||
{ "Scanline", debugEvent.Scanline.ToString() },
|
||||
{ "Cycle", debugEvent.Cycle.ToString() },
|
||||
{ "PC", "$" + debugEvent.ProgramCounter.ToString("X4") },
|
||||
};
|
||||
|
||||
switch(debugEvent.Type) {
|
||||
|
|
|
@ -1112,6 +1112,7 @@ namespace Mesen.GUI
|
|||
{
|
||||
public UInt16 Cycle;
|
||||
public Int16 Scanline;
|
||||
public UInt16 ProgramCounter;
|
||||
public UInt16 Address;
|
||||
public Int16 BreakpointId;
|
||||
public DebugEventType Type;
|
||||
|
|
Loading…
Add table
Reference in a new issue