gnupic: Switching processor for gpsim
Subject:
Re: Switching processor for gpsim
From:
"Matt Marsh" ####@####.####
Date:
21 Apr 2004 09:43:10 +0100
Message-Id: <1028.32.112.128.18.1082536961.squirrel@mail.home.mattmarsh.net>
>> Actually, thinking about this a bit more, I guess I'll
>> generate a 'processor.inc' file as part of each of the make
>> rules for the two targets and include that generated inc file
>> in the assembly source. That should work. I'll give it a try
>> later and post the results.
>
> That sounds like it could get into sticky difficulties with
> dependencies...
>
> Try something like this:
>
> ifdef __16F84
> include "p16f84.h"
> else
> include "p16f84a.h"
> endif
>
> And then you can add "-p16f84" or "-p16f84a" to your gpasm command line
> as appropriate.
Ah yes, that's a much better idea, I shall do that.
> I presume you've read the various reasons not to use the 16F84 anymore?
> (More expensive and less capable than new chips like the 16F628, 16F88,
> etc.)
Indeed I have, the 16f84 was my first project, I know better
for my second project :-) I thought I'd try out gpsim with
my working first project that's all :-)
Thanks for the help,
Matt
--
Matt N. Marsh
Email: ####@####.#### Yahoo: marshmn
Web: http://www.mattmarsh.net/ Jabber: ####@####.####
MSN: ####@####.####
ICQ: 250467363
AIM: MattMarshUK