Exemple #1
0
 public Alu(IMemory memory, IRegisterFile registerFile, ICpuStack cpuStack, ILookupTables lookupTables)
 {
     _memory = memory;
     _lookupTables = lookupTables;
     _registerFile = registerFile;
     _cpuStack = cpuStack;
 }
Exemple #2
0
 /// <summary>
 /// Create new system based on Z80
 /// </summary>
 /// <param name="memory">System memory</param>
 /// <param name="io">IO</param>
 /// <param name="cpuStack"></param>
 /// <param name="lookupTables"></param>
 /// <param name="executionUnit"></param>
 /// <param name="registerFile"></param>
 public ZilogZ80Cpu(IMemory memory, IInputOutputDevice io, ICpuStack cpuStack, ILookupTables lookupTables, IExecutionUnit executionUnit, IRegisterFile registerFile)
 {
     _memory = memory;
     _io = io;
     _executionUnit = executionUnit;
     _registerFile = registerFile;
     _cpuStack = cpuStack;
     lookupTables.Init();
     Reset();
 }
Exemple #3
0
 public ExecutionUnit(IMemory memory, IRegisterFile registerFile, ICpuStack cpuStack, IAlu alu,
     IInputOutputDevice outputDevice, ILookupTables lookupTables)
 {
     _memory = memory;
     _registerFile = registerFile;
     _cpuStack = cpuStack;
     _alu = alu;
     _inputOutputDevice = outputDevice;
     _lookupTables = lookupTables;
 }