; ****************************************************************************************************** ; Initialisation and startup code block ; ------------------------------------------------------------------------------------------------------ _startup IF cDriveLevel == 0 movlw 0xFF ; 0xFF for active Low; 0x00 for active High movwf GPIO ; turn off LEDs (active low) ELSE clrf GPIO ENDIF setbank1 ; switch to register bank 1 movlw ~(1<