public void PrintMemory() { string outputData = ""; for (int i = 0; i < os.GetHardware().memoryCapacity; i++) { outputData += os.AccessMemory(i).ToString() + " "; } outputField.text = outputData; }
public int[] AccessBus(int size) { if (size < pins.Count) { size = pins.Count; } int[] returnVal = new int[size]; for (int i = 0; i < pins.Count; i++) { returnVal[i] = os.AccessMemory(pins[i]); } return(returnVal); }