Emul8.Peripherals.CPU.TranslationCPU.EnterSingleStepModeSafely C# (CSharp) Method

EnterSingleStepModeSafely() public method

public EnterSingleStepModeSafely ( Emul8.Peripherals.CPU.HaltArguments args ) : void
args Emul8.Peripherals.CPU.HaltArguments
return void
        public void EnterSingleStepModeSafely(HaltArguments args)
        {
            // this method should only be called from CPU thread,
            // but we should check it anyway
            CheckCpuThreadId();

            TlibSetPaused();
            InvokeInCpuThreadSafely(() =>
            {
                ExecutionMode = ExecutionMode.SingleStep;
                TlibClearPaused();
                if(args != null)
                {
                    InvokeHalted(args);
                }
            });
        }
TranslationCPU