Thanks, Byron, for the quick response. Now I understand. And I like the shadow register solution. on 1/13/02 4:26 PM, Byron A Jeff at byron@CC.GATECH.EDU wrote: >> Up to the label "prob", the LEDs remain unlit. I would expect them to light >> after "prob" executes. They don't. However, if I change the 0xFF at "why" to >> 0x00, then the LEDs are lit (and I can then change the 0x00 at "prob" to >> 0xFF, and they'll remain lit). > > Not sure about this one. The code looks right. There's no RMW issues/ > > Anyone? Actually, I solved the other problem. I was being stupid; it was working correctly. In some other code I was loading the FSR with: movfw gMyBuffer movwf FSR rather than the correct: movlw gMyBuffer movwf FSR This was the root of a lot of "weird" behavior, coupled with the fact the my LEDs were wired to turn on with 0's written to the port, confused me to no end. When I wrote that those instructions (in my original post) were not working, they were in fact working, just opposite to what I was expecting. Thanks again for all the help! --Rick -- 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