CSPspEmu.Hle.HleThread.Step C# (CSharp) Method

Step() public method

public Step ( int InstructionCountForYield = 1000000 ) : void
InstructionCountForYield int
return void
        public void Step(int InstructionCountForYield = 1000000)
        {
            do
            {
                //CpuThreadState.hlest
                CpuThreadState.StepInstructionCount = InstructionCountForYield;
                //this.MinimalInstructionCountForYield = InstructionCountForYield;
                if (this.HleConfig.UseCoRoutines)
                {
                    Coroutine.ExecuteStep();
                }
                else
                {
                    GreenThread.SwitchTo();
                }
            } while (!HleInterruptManager.Enabled);
        }

Usage Example

Example #1
0
        public void CpuThreadStateTest()
        {
            var HlePspThread = new HleThread(PspEmulatorContext, new CpuThreadState(Processor));

            MipsAssembler.Assemble(@"
            .code 0x08000000
                li r31, 0x08000000
                jal end
                nop
            end:
                addi r1, r1, 1
                jr r31
                nop
            ");

            HlePspThread.CpuThreadState.PC = 0x08000000;
            HlePspThread.Step();
        }
All Usage Examples Of CSPspEmu.Hle.HleThread::Step