/// <summary> /// Jump /// </summary> public Jump(uint offset, uint index) { To = new IndexOffset() { Offset = offset, Index = index }; }
/// <summary> /// Check /// </summary> /// <param name="debug">Debugger</param> public bool Check(IDebugger debug, Instruction ins) { if (_Checker == null) { To = null; return(false); } uint?offset = _Checker.Invoke(debug, ins); if (offset.HasValue) { if (debug.Instructions.OffsetToIndex(offset.Value, out uint ix)) { To = new IndexOffset() { Index = ix, Offset = offset.Value }; return(true); } } To = null; return(false); }