----- Original Message ----- From: Alan B. Pearce To: Microcontroller discussion list - Public. Sent: Tuesday, May 17, 2005 5:06 PM Subject: Re: [PIC] CC5X errors - help > >A further advantage of doing this in the assembler is that XCASM > >can generate a profile of the executable which shows all the > >execution paths through an instruction. With this you can easily > >work backwards and identify paths through an instruction that you > >had not anticipated or simple forgotten about. This greatly helps > >locate an execution path where a variable (or SFR) is undefined. > >This is the kind of error you normally use a simulator and trace > >buffer to find, but with this kind of debugging you might need to > >spend hours homing in on the problem path. > > Whew, with all this, will it also act as a disassembler ? Yes but only of the executable it generates. If you add a buch of data statements and your execution path goes through these then the profile will show the actual code (the data disassembled). Of course if the program is self modifying then your profile will only be valid until the self mod :-) Regards Sergio Masci http://www.xcprod.com/titan/XCSB - optimising PIC compiler FREE for personal non-commercial use -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist