; suppose, you have a variable "uart_data" where you store the incomming data
; and you have another variable "ee_data" in which you load being checkd data
; from EEPROM - I assume that you know, how to read data from internal EEPROM
; Z is status bit in STATUS register which shows the result of last
; arithmatic or logical oparation.
movf ee_data,0 ; move the contents of ee_data to w
andwf uart_data,0 ; try to AND ee_data with uart_data
btfsc Z ; now check, what was the result of AND oparation
goto label_1 ; NOT IDENTICAL, goto lable_1 Z = 1
goto label_2 ; IDENTICAL, goto label_2 Z = 0