Software PWM on ATmega8!

The current working softPWM isn't working over ATmega8 because of the timers etc registers not being compliant with the ATmega168/328 which share very general and similar architecture when it comes to registers. Any one implemented softPWM on ATmega8? can you show me a good way?