Robin Abbott wrote: > > Yes this is quite hard. Indeed, this was the most confusing part when I learned PIC's. > X!=Y Z=1 Z=0? > Hope this helps! (Mind you it would have been easier if Microchip had simply > put the logic in Hardware to "correct" the carry flag after a subtraction ! > The way I remember the "incorrect" carry bit, is I tell myself that when I do subtraction, Carry is already set incase I need it, so it clears when I use it, but stay there if I don't. A bit of reverse logic. :) Quentin