コード例 #1
0
ファイル: Mcu.cs プロジェクト: dmitry-ra/mcu8v1
 public void Start()
 {
     SetBank(0);
     SetInstructionPointer(0);
     var context = new ExecutionContext(_program);
     try
     {
         while (true)
         {
             int address = GetCurrentInstructionAddress();
             context.SetInstructionAddress(address);
             context.Opcode = (Opcode)context.GetNextByte();
             context.ResultStatus = InstructionStatus.NotImplemented;
             ExecutionCycle(context);
         }
     }
     catch (McuException /*mex*/)
     {
         // TODO
     }
 }