gnupic: Re: [gnupic] gpasm macros/defines


Previous by date: 19 Nov 2006 03:30:15 +0000 Re: [gnupic] gpsim & Mandriva 2007, Scott Dattalo
Next by date: 19 Nov 2006 03:30:15 +0000 Re: [gnupic] simulating pic 101 flasher, Robert Pearce
Previous in thread: 19 Nov 2006 03:30:15 +0000 Re: [gnupic] gpasm macros/defines, Tamas Rudnai
Next in thread: 19 Nov 2006 03:30:15 +0000 Re: [gnupic] gpasm macros/defines, David Barnett

Subject: Re: [gnupic] gpasm macros/defines
From: "Scott Dattalo" ####@####.####
Date: 19 Nov 2006 03:30:15 +0000
Message-Id: <61393.71.139.0.37.1163906634.squirrel@ruckus.brouhaha.com>

On Fri, 2006-11-17 at 16:46 -0600, David Barnett wrote:

> I thought I had a workaround for this define/arg expansion problem:
>     START1 MACRO X
>         #define OP1 movlw X
>     ENDM
>     ...
>     START1 5
>     OP1    ; gpasm reports "symbol not previously defined (X)."
> but it turns out there are problems with it, too.  I'm getting kinda
> desperate for advice here.  Scott, have you gotten in deep enough with
> gputils to know anything about this?

David,

I'm not as familiar with gpasm as I once was. Craig has made major
improvements and changes to it since I last looked.

However, your original problem stemmed from a 'pagesel $' problem. Was
this for relocatable or non-relocatable code? I've had issues with the '$'
operator in relocatable code. Also, I've had difficulty with label
arithmetic in relocatable code.  Finally, do you know if the offending
code works with MPASM?

Scott

Previous by date: 19 Nov 2006 03:30:15 +0000 Re: [gnupic] gpsim & Mandriva 2007, Scott Dattalo
Next by date: 19 Nov 2006 03:30:15 +0000 Re: [gnupic] simulating pic 101 flasher, Robert Pearce
Previous in thread: 19 Nov 2006 03:30:15 +0000 Re: [gnupic] gpasm macros/defines, Tamas Rudnai
Next in thread: 19 Nov 2006 03:30:15 +0000 Re: [gnupic] gpasm macros/defines, David Barnett


Powered by ezmlm-browse 0.20.