Thanks Olin. Very useful! Regards, Stephen D. Barnes > Olin wrote: > I've occasionally had customers dump PIC source code on me. Of course > it's never formatted the way I like to see it. These files often contain > tabs at unknown settings, no consistant formatting, random column > alignment depending on number of beers consumed, etc. In short, these > files are usually a mess and therefore difficult to follow what the intent > was. > > I just received another one of these about 4000 lines long. Actually this > one is better than most, but it still has random tabs and other formatting > that makes it hard to read. > > I finally got around to writing a PIC assembler reformatter, something > I've wanted for years. It eliminates tabs, reformats labels, opcodes, > operands, and end of line comments into consistant columns, and does a few > other things to make the source code more easily readable. The formatting > conventions are the same as used in all my example code. > > I've added the reformatter (ASPIC_FIX) to the PIC development environment > described at http://www.embedinc.com/pic. This is all available for free > download. I've also started keeping a changes history for the PIC > development environment so anyone can see what changed since the last > release. This is at http://www.embedinc.com/pic/picdev_hist.htm, and is > linked to from the downloads page. > > > ***************************************************************** > Embed Inc, embedded system specialists in Littleton Massachusetts > (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads