Martin shot 9 of 10 from the field and didn’t miss until 1:40 remained in the game, J.R. Smith scored 14 points and the Knicks earned their 41st win. That guaranteed they’ll reach the playoffs for the third straight season.

The defeat was a double blow for Toronto, which lost for the 11th time in 15 games and saw forward Rudy Gay leave in the second with a sore back. He did not return.

Terry scored eight in his first game in Dallas since leaving for Boston in free agency. He was the latest key piece the Mavericks decided not to keep since beating Miami in the 2011 NBA Finals.

Terry was known for 3-point shooting and clutch fourth quarters with the Mavericks, but he missed both 3-pointers for the game and was just 1 of 3 shooting without a try from long range in the final quarter.

Thomas Robinson scored 15 points and Greg Smith grabbed a career-high 13 rebounds off the bench for the Rockets, who stayed in the No. 7 spot in the Western Conference. Asik also grabbed 11 rebounds for Houston, which has won four of five games on its current homestand.

Shaun Livingston scored 14 points for the Cavaliers, who’ve dropped five in a row and nine of their last 11 games.

HORNETS 90, GRIZZLIES 83NEW ORLEANS (AP) — Robin Lopez had 23 points, including a key putback and a pair of free throws in the final 1:11, and New Orleans won its second straight.

Lopez also had 10 rebounds for New Orleans, Anthony Davis added 18 points and 15 boards, and Greivis Vasquez had 12 points and nine assists.

Mike Conley scored 20 points while nearly leading the Grizzlies back from a 16-point fourth-quarter hole. His consecutive 3s had Memphis within 83-81 with 2:36 left, but Vasquez answered with a big 3 and Lopez’s putback made it 88-81.