> . . . the bizarre sublw instruction and the backwards > behaviour of the C flag There are three common ways to do a subtract,Microchip uses one of them in the PIC's and 6502 and 6805 use the other two. They all treat the carry different. This is the main reason that assembly code cannot be easily translated with macros from one processor to the next.