Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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;
        }