not on a cro

using a main loop like this
MAIN:

PWM_VAL = PWM_VAL+1
PAUSE 500
if pwm_val > 29 then pwm_val=0
toggle portd.1
Goto MAIN