mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-12 03:15:39 +00:00
31 lines
473 B
C++
31 lines
473 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "ExpressionEvaluator.h"
|
|
|
|
enum BreakpointType
|
|
{
|
|
Global = 0,
|
|
Execute = 1,
|
|
ReadRam = 2,
|
|
WriteRam = 4,
|
|
ReadVram = 8,
|
|
WriteVram = 16,
|
|
};
|
|
|
|
class Breakpoint
|
|
{
|
|
public:
|
|
Breakpoint();
|
|
~Breakpoint();
|
|
|
|
bool Matches(uint32_t memoryAddr, uint32_t absoluteAddr);
|
|
BreakpointType GetType();
|
|
string GetCondition();
|
|
void ClearCondition();
|
|
|
|
private:
|
|
BreakpointType _type;
|
|
int32_t _addr;
|
|
bool _isAbsoluteAddr;
|
|
char _condition[1000];
|
|
}; |