If you're talking about reassembling with correct cam timing, here's what I did for my 650. Set the crank to TDC (1.4 on my bike) and inserted the cam from the LEFT side of the bike with the notched side farthest away from me (e.g. toward the right side). Then, rotated the cam until the notch aligned with the top of the head, facing to the FRONT. Pulled it out again with a general idea of position, and put the chain on... had to play with a tooth here and a tooth there till I got it right, but when I had it finished it aligned flush the the front of the head.
Of course, that's for an '82 CB650. Might be different on a 500.