예제 #1
0
파일: Processor.cs 프로젝트: japerr/6502Net
        /// <summary>
        /// Default Constructor, Instantiates a new instance of the processor.
        /// </summary>
        public Processor()
        {
            Stack = new byte[256];
            Memory = new Ram(0xFFFF);
            StackPointer = 0xFF;

            InitalizeStack();

            InterruptPeriod = 20;
            NumberofCyclesLeft = InterruptPeriod;
        }
예제 #2
0
		/// <summary>
		/// Default Constructor, Instantiates a new instance of the processor.
		/// </summary>
		public Processor()
		{
			Memory = new Ram(0x10000);

			StackPointer = 0x100;
		}