Welcome.
Looks like your code is working fine, the LEDs blink because if a button is not pressed it GOSUBs to an LED low command.
To make all of the LEDs light, get rid of all
Make a button when presses GOSUB to an LED_ALL_LOW block.Code:if portb.0 = 0 then gosub npressed0
To run without a crystal you need a chip with a built in OSC like a 16F676.





Bookmarks