Morgan Olsson wrote: > > Guys, it *do* work in MPLAB (3.99.23), and why should it not? I tried in on an emulator. My routine does _NOT_ work. I had read again the datasheet and it is specified there that only BCF,BSF,SWAPF and MOVWF could modify the STATUS. Indirectly, arithmetic operations can modify it also. I guess it is bug in MPLAB. Is it also true in GPSIM? regards, Reggie