Shares gained in Japan, but slipped in Australia and South Korea. US contracts advanced in Asia after the S&P 500 closed up 0.2% and the Nasdaq Composite rose to a record. In late US trading, Alphabet Inc. climbed more than 5% as the Google parent’s earnings beat estimates, while Advanced Micro Devices Inc. sank 7% amid a lackluster revenue forecast.