Hi, I've started a project some time ago, called unPIC, which is a disassembler written in Perl script. The purpose of that project was exactly like this, to get a very much understandable and re-usable assembly code from a HEX file. This is an independent disassembler, nothing to do with gputils - hope people here will not kill me because of this mail - hey man, it's under gnu2 licence and opensource, leave me alive for god sake :-) It needs the INC file so that's how it knows the susbtitution, and also translates labels and variables into proper assembly code leaving as few numbers in the code as possible. Unfortunately I have not got too much time at the moment for this, but you can have a try with the one is in sourceforge: http://unpic.sourceforge.net Regards, Tamas On 5/22/07, Peter P. wrote: > > Nathanial Hendler gmail.com> writes: > > > Is there a way to have gpdasm use the header file for a pic so that it > > replaces 0x5 with PORTB (or whatever)? > > > Any help? > > Try to use the search-and-substitute feature in your editor to do it. If > you use > *nix and know some scripting you can achieve the same result using regular > expressions. > > hope it helps, > Peter P. > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist