On Sat, 18 May 2002, Wojciech Zabolotny wrote: > Hi All, > > I needed to define PIC16F877 registers for my C program compiled with SDCC. > I took the p16f877.inc from gputils package and converted it to match SDCC > requirements (following suggestions from thr last Scott Dattalo's message). > I hope that this include file may be useful for other users of PIC port of > SDCC. > It has not been tested very carefully, so it may contain errors, please fill > free to send any corrections/improvements. > Please consider this code to be in public domain (unless its dependency on > original p16f877.inc places other limitations - sorry I'm not a lawyer). Cool! I'll put this into the regression code. You can kill two stones with one bird by writing a script to do the conversion for you. The first stone of course is converting *all* of the include files. Once that is done, then anyone can run the script against the freely available Microchip .INC files. (see: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gpasm/gpasm/header/ ) Anybody care to write a script to do this? BTW, for the piclist crowd, here's a link to the SDCC message I posted to the gnupic mailing list: http://www.linuxhacker.org/cgi-bin/ezmlm-cgi?1:mss:1235:200205:kombklmgbpdanfdajlcc Scott -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads