Hi there I've just been doing a bit of coding using the Piclist Code Generator for some divide by a constant coding. I've got a few hundred lines of ASM now much of which is duplicated. Does anyone know of any programs out there that will recognise patterns of code and optimise them so they can be "called" as a subroutine rather than linear code ? I could go through the code by hand but it would be nice if there was any pattern recognition software out there that could do this in an easier fashion. Regards Dom -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.