Sorry... I left out a couple of sets of parentheses. It'll hardly ever matter, but just to be safe, here's the correct version: _setint: macro aaa,lll ; sets integer aaa to literal value lll if (low (lll) == 0) clrf (aaa) + 1 else movlw low (lll) movwf (aaa) + 1 endif if (high (lll) == 0) clrf (aaa) else if (high (lll) != low (lll)) movlw high (lll) endif movwf (aaa) endif endm -Andy === Andrew Warren - fastfwd@ix.netcom.com === === Fast Forward Engineering - Vista, California === === === === Custodian of the PICLIST Fund -- For more info, see: === === http://www.geocities.com/SiliconValley/2499/fund.html ===