Home Stock Dow gains as Apple offsets chip weakness, S&P 500 closes near flat