This is a very sad situation.
If you can spend time with him or call him frequently that would be best. Just let him know that you are there for him to talk or spend time with. Continue to create memories for both of you: a ball game, movie, computer game, concert, are just some examples. If he wants to discuss the diagnosis and prognosis with you, just try to listen and express your feelings too.