Пример #1
0
 public void Push(Frame frame)
 {
     if (stack.Size >= maxSize)
     {
         throw new Exception("VMStack overflow");
     }
     stack.Push(frame);
 }
Пример #2
0
 private void Push(Slot slot)
 {
     if (stack.Size >= maxStack)
     {
         throw new Exception("OperandStack overflow");
     }
     stack.Push(slot);
 }
Пример #3
0
 /// <summary>
 /// Ruft den Interrupt auf
 /// </summary>
 private void DoInterrupt()
 {
     Stack.Push(RegisterMap.ProgrammCounter);
     RegisterMap.GlobalInterruptEnable = false;
     RegisterMap.ProgrammCounter       = 0x4;
 }