public CPU16Bit(CPUAnalyzer analyzer) { if (analyzer != null) analyzer.cpu = this; alu = new ALU(16); d = new Register(16); pc = new ProgramCounter(16); a = new Register(16); }
public PCAnalyzer(PC pc, PCAnalyzerSettings settings) { if (pc.CPU != null && settings.CPU != null) { CPU = new CPUAnalyzer(pc.CPU, settings.CPU); } GPU = new List <GPUAnalyzer>(); if (pc.GPU != null && settings.GPU != null) { for (int i = 0; i < pc.GPU.Count && i < settings.GPU.Count; i++) { GPU.Add(new GPUAnalyzer(pc.GPU[i], settings.GPU[i])); } } RAM = new List <RAMAnalyzer>(); if (pc.RAM != null && settings.RAM != null) { for (int i = 0; i < pc.RAM.Count && i < settings.RAM.Count; i++) { RAM.Add(new RAMAnalyzer(pc.RAM[i], settings.RAM[i])); } } Drive = new List <DriveAnalyzer>(); if (pc.Drive != null && settings.Drive != null) { for (int i = 0; i < pc.Drive.Count && i < settings.Drive.Count; i++) { Drive.Add(new DriveAnalyzer(pc.Drive[i], settings.Drive[i])); } } if (pc.Motherboard != null && settings.Motherboard != null) { Motherboard = new MotherboardAnalyzer(pc.Motherboard, settings.Motherboard); } }