> Uses file register #(ASCII code for 'X') and W and does absolutely > nothing with rcreg. > Try > movlw 'X' > subwf rcreg,W > Then test Z. Unsettling how often the obvious is right under our nose > I think you need to reread the explanation of subwf. > You are subtracting W from a file register (or is it the other way > around? i forget. doesn't matter here anyway). > movf rcreg,W > subwf 'X',w SUBLW is the reversed mnemonic - subtract W from Literal movf rcreg,w sublw 'A' btfsc zero goto conversionA movf rcreg,w ;W needs to be re-loaded sublw 'B' etc -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads