gnupic: Re: [gnupic] macro expansion in gpsim


Previous by date: 7 Jan 2006 16:22:48 +0000 macro expansion in gpsim, John De Villiers
Next by date: 7 Jan 2006 16:22:48 +0000 Re: [gnupic] one week with FreeBSD: PIC related, Easy B
Previous in thread:
Next in thread: 7 Jan 2006 16:22:48 +0000 Re: [gnupic] macro expansion in gpsim, John De Villiers

Subject: Re: [gnupic] macro expansion in gpsim
From: "Scott Dattalo" ####@####.####
Date: 7 Jan 2006 16:22:48 +0000
Message-Id: <62621.71.139.22.47.1136649238.squirrel@71.139.22.47>

> what do i need to do to switch on macro expansion in gpsim.

Hi John,

There is no 'switch' to turn on macro expansion in gpsim. The closest
thing you can get to this is with the 'list' and 'disassemble' command
line commands. The list command displays the contents of the list file
(although I just discovered that there is a bug in the ability to select
the lines you wish to display). If the .lst file expands macros then you
will see this expansion in gpsim too. The disassemble command is an
annotated disassembly. The raw opcodes are decoded into their mnemonics
and the source line that generated them is shown.

In general, the command line of gpsim can show how gpasm expands macros.
However, there are a few bugs in this part of gpsim that need to be fixed.
Also, gpsim has no idea whether or not a particular instruction is part of
a macro. Finally, since the gui only displays the .asm sources (and not
the .lst), it does not show how macros are expanded. (The program memory
viewer can disassembled opcodes, but it does not annotate the disassembly
like the command line).

Scott

Previous by date: 7 Jan 2006 16:22:48 +0000 macro expansion in gpsim, John De Villiers
Next by date: 7 Jan 2006 16:22:48 +0000 Re: [gnupic] one week with FreeBSD: PIC related, Easy B
Previous in thread:
Next in thread: 7 Jan 2006 16:22:48 +0000 Re: [gnupic] macro expansion in gpsim, John De Villiers


Powered by ezmlm-browse 0.20.