Code:
CMCON = %00000111 TRISA = %11111110
error here

Code:
while 1=1
What?

Code:
portb.8 = 1 zet led 4 aan
will never work, well it might, but not the way you'd expect

Code:
'PWM VOOR 1 LEDje:
If that's meant to be a label, won't work...

Code:
if pwmled1 = 255 then pwmled1 = 0
If you've got pwmled1 defined as a byte, no need to reset it, it'll just roll over to zero