Found the answer. However could somone give me a little advise, i have the following calculation which seems to take 50 cpu cycles.
Angle = ((390 - (ToothNo * 30)) - ((TCNT - Tooth1) / Gapdeg));
I also have 4
if ((C1START <= 360) && (ANGLE <= C1START)) // COIL1 START PULSE
Which combine to use around 90 cpu cycles.
Are there far more efficient ways to write such things? if so how do i find them out? Are there any good books etc?