Setting VERBOSE ON will echo all incoming stimuli to the screen. This should be all the information you need, and though parsing is a little messy, it should be easier than manually combining info from separate files. Darrel J. ______________________________ Reply Separator _________________________________ Subject: Re: mpsim simulator questions Author: Andrew Warren at Internet_Exchange Date: 8/23/95 10:59 PM Steven T. Sprouse wrote: >I'm writing a tool which will display waveforms >of a PIC's IO pins from the output of MicroChip's >mpsim trace file. > .... >I've run in to a snag where mpsim does not generate >register information when a port changes value >from an external signal. > >ie. If an instruction changes PORTB I get [an entry in the .trc file] >.... whereas if PORTB,4 changes in response to an external stimulus >the internal register changes but no PORTB trace entry is generated Steven: Maybe I'm misunderstanding your problem, but have you thought of reading the ".STI" stimulus file as well as the ".TRC" trace file, and combining the information from both sources? By the way, Don Lekei has already written a program (for MS-DOS only, I think) that does essentially what you want. Don can be reached through his home page at: http://helix.net/~lekei/ -Andy -- Andrew Warren - fastfwd@ix.netcom.com Fast Forward Engineering, Vista, California