IncrementTicks() 정적인 개인적인 메소드

static private IncrementTicks ( int ticks ) : void
ticks int
리턴 void
예제 #1
0
파일: Vm.cs 프로젝트: mbrezu/Shovel
 static void HandlePrim0(Vm vm)
 {
     var instruction = vm.CurrentInstruction ();
     if (vm.GetCurrentCache () == null) {
         var primName = (string)instruction.Arguments;
         if (!Vm.Prim0Hash.ContainsKey (primName)) {
             vm.RaiseShovelError (String.Format (
                 "Cannot take address of primitive '{0}' (implemented as instruction).",
                 primName)
             );
         }
         vm.SetCurrentCache (Value.Make (Vm.Prim0Hash [primName]));
     }
     vm.stack.Push ((Value)vm.GetCurrentCache ());
     vm.IncrementTicks (1);
     vm.programCounter++;
 }
예제 #2
0
파일: Vm.cs 프로젝트: mbrezu/Shovel
 static void HandlePrim(Vm vm)
 {
     var instruction = vm.CurrentInstruction ();
     if (vm.GetCurrentCache () == null) {
         var udpName = (string)instruction.Arguments;
         vm.SetCurrentCache (Value.Make (GetUdpByName (vm, udpName)));
     }
     vm.stack.Push ((Value)vm.GetCurrentCache ());
     vm.IncrementTicks (1);
     vm.programCounter++;
 }