gnupic: gpasm preprocessor problems


Previous by date: 14 Jan 2005 16:10:59 +0000 Re: recommend graphical LCD?, Roger Pryor
Next by date: 14 Jan 2005 16:10:59 +0000 Re: recommend graphical LCD?, Michael Ihde
Previous in thread:
Next in thread: 14 Jan 2005 16:10:59 +0000 Re: gpasm preprocessor problems, Craig Franklin

Subject: gpasm preprocessor problems
From: Marco Jez ####@####.####
Date: 14 Jan 2005 16:10:59 +0000
Message-Id: <1105719017.9695.9.camel@linuxbox.arsenal.infinita.org>

Hello everybody,

this is my first post, so please don't kill me if I happen to be
off-topic...
I'm trying to port some PIC projects from Windows (MPASM) to Linux. The
gpasm assembler seems to be pretty "pin-to-pin equivalent" to MPASM, but
I still have some MPASM-based code I can't assemble with gpasm. For
example, the following simple code snippet doesn't work:


x=0
	while x<2
	extern MyLabel_#v(x)
x+=1
	endw


I get an "illegal argument" error on the 'extern' declaration. I'd
expect that such code would expand as:

	extern MyLabel_0
	extern MyLabel_1

In fact MPASM expands it correctly.

Am I doing something wrong? My version of gpasm is 0.12.3 (installed
from gentoo ebuild)

Cheers,
  Marco



Previous by date: 14 Jan 2005 16:10:59 +0000 Re: recommend graphical LCD?, Roger Pryor
Next by date: 14 Jan 2005 16:10:59 +0000 Re: recommend graphical LCD?, Michael Ihde
Previous in thread:
Next in thread: 14 Jan 2005 16:10:59 +0000 Re: gpasm preprocessor problems, Craig Franklin


Powered by ezmlm-browse 0.20.