Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }