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