Hi, just want to get a quick check of my code. I think it will work, but I want to be sure. Basically I want to take the lower 6 bits from PortA, the 2 upper bits from PortB, and mask them together into one byte. Will this work? movf PORTA, W andlw b'11111100' movwf TEMP movf PORTB, W andlw b'00000011' iorwf TEMP, F I changed the name of my register to TEMP so it wouldn't be quite so confusing. Thanks! Josh -- A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics