Skip to content

Instantly share code, notes, and snippets.

@toptensoftware
Created October 23, 2016 12:09
Show Gist options
  • Select an option

  • Save toptensoftware/7ecb1056f0426c2b777ee7e4073f84f4 to your computer and use it in GitHub Desktop.

Select an option

Save toptensoftware/7ecb1056f0426c2b777ee7e4073f84f4 to your computer and use it in GitHub Desktop.
Sharp86 Code Break Point
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