VirtualC64 v5.0 beta
Commodore 64 Emulator
Loading...
Searching...
No Matches
PeddleDebuggerTypes.h
1// -----------------------------------------------------------------------------
2// This file is part of Peddle - A MOS 65xx CPU emulator
3//
4// Copyright (C) Dirk W. Hoffmann. www.dirkwhoffmann.de
5// Published under the terms of the MIT License
6// -----------------------------------------------------------------------------
7
8#pragma once
9
10#include "Types.h"
11
12namespace vc64::peddle {
13
14// Base structure for a single breakpoint or watchpoint
15struct Guard {
16
17 // The observed address
18 u32 addr;
19
20 // Disabled guards never trigger
21 bool enabled;
22
23 // Counts the number of hits
24 long hits;
25
26 // Ignore counter
27 long ignore;
28
29public:
30
31 // Returns true if the guard hits
32 bool eval(u32 addr);
33
34 // Replaces the address by another
35 void moveTo(u32 newAddr);
36};
37
38}