340 Not firing on all cylinders

Ok so on closer inspection I realize the entire distributor is turning...the retainer plate must have been loose.so in a nut shell I am pretty sure I buggered up the timing! Oh and by the way it does have an electronic ignition...so if I can't get the motor to start how do I set the timing? Basically need a process for initial timing...