-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
303f9b1
commit 21f72bf
Showing
10 changed files
with
372 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// ----------------------------------------------------------------------------- | ||
// This file is part of Peddle - A MOS 65xx CPU emulator | ||
// | ||
// Copyright (C) Dirk W. Hoffmann. www.dirkwhoffmann.de | ||
// Published under the terms of the MIT License | ||
// ----------------------------------------------------------------------------- | ||
|
||
#pragma once | ||
|
||
#include "Types.h" | ||
|
||
namespace vc64::peddle { | ||
|
||
// Base structure for a single breakpoint or watchpoint | ||
struct Guard { | ||
|
||
// The observed address | ||
u32 addr; | ||
|
||
// Disabled guards never trigger | ||
bool enabled; | ||
|
||
// Counts the number of hits | ||
long hits; | ||
|
||
// Ignore counter | ||
long ignore; | ||
|
||
public: | ||
|
||
// Returns true if the guard hits | ||
bool eval(u32 addr); | ||
|
||
// Replaces the address by another | ||
void moveTo(u32 newAddr); | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
#pragma once | ||
|
||
#include "Types.h" | ||
#include "PeddleDebuggerTypes.h" | ||
|
||
namespace vc64::peddle { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
#pragma once | ||
|
||
#include "CoreObject.h" | ||
#include <assert.h> | ||
|
||
namespace vc64 { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.