public Processor(ITape tape, IInstructionTable table) { if(null == tape) { throw new ArgumentNullException("Tape must not be null"); } if(null == table) { throw new ArgumentNullException("Instruction table must not be null"); } mTable = table; mTape = tape; mNextState = "START"; Tick = 0; }
public CPU() { Registers = new RegisterIO(); _instructionTable = new InstructionTable(Registers); }