Last active
October 23, 2016 12:10
-
-
Save toptensoftware/1ef6406d2582ee0970dc6e05c5068ff3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| public class CodeBreakPoint : BreakPoint | |
| { | |
| public CodeBreakPoint(ushort segment, ushort offset) | |
| { | |
| Segment = segment; | |
| Offset = offset; | |
| } | |
| public ushort Segment; | |
| public ushort Offset; | |
| public override bool ShouldBreak(DebuggerCore debugger) | |
| { | |
| var cpu = debugger.CPU; | |
| return cpu.cs == Segment && cpu.ip == Offset; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment