Code:
pwmxl:
           if cntr = 0 then outputport = 1        'this clears all pwm ports
           if cntr = dutycl then outputport = 0  'this line can be repeated for as                                                                                                                          
                                                             'many as you have pwm outputs
           cntr = cntr + 1
           if cntr = 0 then exitpwm
           goto pwmxl
exitpwm:
           return
I hope the rest you figger out by yourselfs !