Distributor drive gear position at TDC

It doesn't matter if the engine is on TDC compression stroke to set the gear, just as long as it is on compression stroke when you set the distributor. The slot in the gear will be in the same spot no matter if it is on the exhaust stroke compression stroke.