Exemplo n.º 1
0
    /**
     * @brief Stores the value of ALUz into a given register.
     * @param register - The register to store ALUz's content into.
     */
    public IEnumerator ReadFromALUz(Register register)
    {
        busSystem.StartTransferringData(register.RouteToALUz);
        yield return(new WaitForSeconds(clock.GetSpeed()));

        register.Write(ALU.ReadZ());
        busSystem.StopTransferringData(register.RouteToALUz);
    }