gnupic: Switching processor for gpsim


Previous by date: 21 Apr 2004 08:40:49 +0100 picp vs. Solaris on SPARC, Levente KOVACS
Next by date: 21 Apr 2004 08:40:49 +0100 Re: Switching processor for gpsim, Matt Marsh
Previous in thread:
Next in thread: 21 Apr 2004 08:40:49 +0100 Re: Switching processor for gpsim, Matt Marsh

Subject: Switching processor for gpsim
From: "Matt Marsh" ####@####.####
Date: 21 Apr 2004 08:40:49 +0100
Message-Id: <51515.32.112.128.18.1082533217.squirrel@mail.home.mattmarsh.net>

Hi,

I'm pretty new to PIC programming and right now I'm just
starting to use gpsim.

One thing that I noticed straight away was that my first
PIC program couldn't be run in gpsim because it was written
for the P16F84A which isn't supported. The P16F84 is
supported though so it was easy enough to change the two
lines at the top of my assembly source to:

        list    P=16F84
        include "p16f84.inc"

What I'd really like to do is to have some way of automating
this, so that I can build my project either for simulation,
or for a real chip, and have it set those two lines as
appropriate. So what I'd really like is two make targets, say
"projname.hex" and "projname-sim.hex" where those two lines
are set appropriately. Can anyone think of a way of doing this?

Thanks,
Matt

-- 
Matt N. Marsh
Email: ####@####.####          Yahoo: marshmn
  Web: http://www.mattmarsh.net/  Jabber: ####@####.####
                                     MSN: ####@####.####
                                     ICQ: 250467363
                                     AIM: MattMarshUK




Previous by date: 21 Apr 2004 08:40:49 +0100 picp vs. Solaris on SPARC, Levente KOVACS
Next by date: 21 Apr 2004 08:40:49 +0100 Re: Switching processor for gpsim, Matt Marsh
Previous in thread:
Next in thread: 21 Apr 2004 08:40:49 +0100 Re: Switching processor for gpsim, Matt Marsh


Powered by ezmlm-browse 0.20.