public CallOperation(short _targetOperationAddress, OperationStack _operationStack, ProgramCounter _programCounter, RegisterFileMap _registerFileMap, short _address)
     : base(_registerFileMap, CYCLES, _address)
 {
     this.targetOperationAddress = _targetOperationAddress;
     this.programCounter = _programCounter;
     this.operationStack = _operationStack;
 }
Пример #2
0
        public PIC()
        {
            programCounter      = new Register.ProgramCounter(registerMap);
            clock               = new Clock(this, interval);
            interruptHandler    = new Handler.InterruptHandler(this, registerMap);
            parser              = new Parser.Parser(this);
            timer0              = new Timer0.Timer0(registerMap, this);
            eepromHandler       = new Handler.EEPROMHandler(registerMap, eeprom);
            wdt                 = new WatchDog.WDT(this);

            executionStatus.Value   = PicExecutionState.STOPPED;
            executedCycles.Value    = 0;

            frequencyValue.Value    = 4;
            frequencyUnit.Value     = FrequencyUnit.MEGA_HZ;

            frequencyUnit.DataChanged   += onFrequencyUnitChange;
            frequencyValue.DataChanged  += onFrequencyValueChange;
        }