I have a simple problem but i don't can solve.

Code:
pwr var byte

If up = 1 Then
       PAUSE 50
       pwr = pwr + 1                              
       If pwr >= 255 Then pwr = 255                 
Endif
If pwr >= 255 always go to 0 and no to 255.Why happen this?