INTERRUPT MOVWF W_TEMP ; save W
SWAPF STATUS,W ; save status
MOVWF STATUS_TEMP ; without changing flags
; CLRWDT ; Clear Watchdog timer
[B] movf PORTB,W ; read PORTB bits
andlw B'00110000' ; don't touch bits 4 & 5
movwf PORTB ; turn off digit select transistor(s)
[/B] INCF DIGCTR,F ; next digit #
MOVF DIGCTR,W ; get it into W
ANDLW B'00000011' ; mask off 2 lowest bits
MOVWF DIGIT ; save it for later
ADDLW H'40' ; point at register to display
MOVWF FSR ; use as pointer
MOVF INDF,W ; get value of reg pointed to into W
btfss DIGIT,0 ; These 4 lines check for a 3 in DIGIT
goto NOT_MIN10_DIGIT
btfss DIGIT,1
goto NOT_MIN10_DIGIT
btfsc STATUS, Z ; Check if W is zero
movlw H'0A' ; Make the 4543 display a blank
NOT_MIN10_DIGIT