protected override void Update(GameTime gameTime) { if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) { Exit(); } YProcessor.Tick(); base.Update(gameTime); }
static void Main(string[] args) { Processor YProcessor = new Processor(); for (int i = 0; i < 50; i++) { YProcessor.Tick(); Console.WriteLine(Enum.GetName(typeof(EnumInstructions), YProcessor.GetCurrentInstruction())); } return; }