James Newton wrote: > > Does it HAVE to work on a 16C55? If you had an ADDLW > > instruction, you could do this: > > > > MOVF BufTyp,W > > ADDLW 0xEF > > SKPNC > > SKPDC > > RETLW 0 > > It does have to work on a 16c55 (actually an SX 28) but can't I just: > > MOVLW 0xEF > ADDF BufTyp, W > SKPNC > SKPDC > RETLW 0 Sigh... Can you tell that it's been a while since I've written any PIC code? Of course your re-ordering will work, James; I should have written it that way originally. -Andy === Andrew Warren --- aiw@cypress.com === Staff Systems Engineer, IPD === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.