On Thu, 24 Feb 2005 10:09:01 -0500, Bob J wrote: > Rewriting this for the 18F, I'm thinking it would look like this (I > haven't tried it): > > SUB16 macro a,b > ; a = a - b > local hb > movf b,w > subwf a,f > bc highb > decf high a,f > hb movf high b,w > subwf a,f > endm oops, hit the send button too soon. It should read: SUB16 macro a,b ; a = a - b local hb movf b,w subwf a,f bc hb decf high a,f hb movf high b,w subwf a,f endm -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist