For those who didn't follow the previous thread the question is what happens when the instruction is executed. RRF STATUS,F The emulator answer provided by Andy Warren is:- If the STATUS register holds ABCDEFGH before... After RRF STATUS,F: STATUS = HABDEFGH (just as we saw above, the MSB gets a copy of the Carry flag. /TO and /PD don't change, since they're read-only, and DC, Z, and C don't change because their protected by logic within the PIC) The remaining puzzle is why is are DC and Z flags being updated after RRF instruction is executed. Data book says only C should be updated (obviously). Otherwise it all makes sense... Ray Gardiner Technical Director DSP Systems email to: ray@dsp-systems.com private email to: ray@netspace.net.au http://www.dsp-systems.com