/// <summary> /// Executes a single clock cycle of the board, including the CPU and all other devices. /// </summary> /// <returns>True if the CPU completed execution of an instruction.</returns> public bool Tick() { bool ret = false; mTickCounter++; if (CPU.Tick()) { RAM.Write(); InterruptButton.Write(); Serial1.Write(); Serial2.Write(); Timer.Write(); Parallel.Write(); ROM.Write(); ret = true; } Timer.Tick(); Serial1.Tick(); Serial2.Tick(); return(ret); }
void Update() { SerialIO.Write(on ? "1" : "0"); on = !on; string rString = SerialIO.Read(); Debug.Log(rString); }