예제 #1
0
파일: CPU.cs 프로젝트: vosechu/KOS
        public override void Update(float time)
        {
            bindingManager.Update(time);

            SessionTime += time;

            for (var i = 0; i < CLOCK_SPEED; i++)
            {
                base.Update(time / CLOCK_SPEED);
            }

            switch (Mode)
            {
            case CPUMode.STARVED:
                ChildContext = null;
                break;

            case CPUMode.OFF:
                ChildContext = null;
                break;
            }

            // After booting
            if (ChildContext == null)
            {
                Push(new ImmediateMode(this));
            }
        }