Esempio n. 1
0
 /// <summary>
 /// Führt die in Command kodierte Funktion aus
 /// </summary>
 /// <param name="Command">Befehl</param>
 /// <param name="Line">Zu Befehl gehörige Zeile</param>
 private void ExecuteFunction(int Command, BytecodeLine Line)
 {
     for (int X = 0; X < Functions.Length; X++)
     {
         BaseFunction Func = Functions[X];
         if (Func.Match(Command))
         {
             Func.Execute(this, Line);
             int Cycles = Func.Cycles;
             for (int C = 0; C < Cycles; C++)
             {
                 TMR0.Tick(false);
             }
             Runtime.Value += Cycles * CycleTime.Value;
             break;
         }
     }
 }