This page discusses * important code lines * that is important or might be interested for you as a Bochs.Net Developer.

Link CPU to Scheduler

file:
Core/CPUBase.cs
code:
      mPCBoard.Scheduler.RegisterSchedule(new Core.Simulator.ScheduleEntry(this.CPULoop, "CPU LOOP", 0, true, 10, true));

Execute Instruction

file:
CPU/CPU.cs
code:
      protected void Execute()

Actual Decoding of Instructions

file:
CPU/Instructions/InstructionExecution.cs
code:
       public Instruction FetchDecode32(UInt64 FetchPtr, UInt64 RemainingInPage)
        {
            Instruction oInstruction = mCPU.ICache.Pool[mCPU.ICache.PIndex]; // new Instruction();
            OpCode OpcodeInfoPtr=null;
            bool bUseOPCodeInstruction32R = true;
            byte SSE_prefix = (byte)Enum_SSE.SSE_PREFIX_NONE;
           .  .  .
         }




Last edited Jul 21, 2011 at 9:57 PM by MHefny, version 5

Comments

No comments yet.