Created
October 23, 2016 12:09
-
-
Save toptensoftware/7ecb1056f0426c2b777ee7e4073f84f4 to your computer and use it in GitHub Desktop.
Sharp86 Code Break Point
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 Segment == cpu.cs && Offset == cpu.ip; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment