Tokyo's Nikkei 225 gained 0.6% to 39,895.84 as the US dollar rose against the Japanese yen, trading near 149 yen.