I've been struggling to port an assembly language routine into CCS C. So far, no hitches until I got to a lookup table that uses the RETLW instruction. Try as I might, the compiler always tells me it was "expecting an opcode mnemonic" when it gets to RETLW. Does the CCS compiler recognize this opcode (which IS a valid opcode for the 16C505, I checked already) ??? -- Lawrence Lile => Median Filter Source Code => AutoCad blocks for electrical drafting => Brownout tester plans => Amateurish pictures of my family at: http://home1.gte.net/llile/index.htm