public void SvcCall(object sender, InstExceptionEventArgs e) { Action <SvcHandler, CpuThreadState> svcFunc = SvcTable.GetSvcFunc(e.Id); if (svcFunc == null) { throw new NotImplementedException($"SVC 0x{e.Id:X4} is not implemented."); } CpuThreadState threadState = (CpuThreadState)sender; svcFunc(this, threadState); }
public void SvcCall(object sender, InstExceptionEventArgs e) { Action <SvcHandler, IExecutionContext> svcFunc = SvcTable.GetSvcFunc(e.Id); if (svcFunc == null) { throw new NotImplementedException($"SVC 0x{e.Id:X4} is not implemented."); } IExecutionContext context = (IExecutionContext)sender; svcFunc(this, context); }