gnupic: Parametric #defines
Subject:
Parametric #defines
From:
"Fernando J. =?iso-8859-1?q?Rodr=EDguez?=" ####@####.####
Date:
27 Jul 2006 14:42:09 +0100
Message-Id: <200607271041.58546.desarrollo@smc-energy.com>
Hi!
I'm trying to assemble with gpasm some programs that were developed
with Microchip's official tools, and I think I've found a feature
present in Microchip's MPLab but missing in gpasm: parametric
#defines.
Consider this (useless) program:
-----------------test.asm-----------------
processor 18F6720
include p18f6720.inc
#define dummy(p) p
org 0x0
bsf dummy(PORTA),dummy(RA2),A
end
-----------------test.asm-----------------
I get a syntax error when I assemble that code with gpasm but not when
I use MPLab:
gpasm -y test.asm
test.asm:7:Error [103] syntax error
This is gpasm-0.13.3 beta as packaged by Debian in an up-to-date
Debian "Etch" system.
Is there any other syntax for implementing parametric #defines?
Thank's in advance,
--
Ing. Fernando J. RodrĂguez
SMC Energy S.A.
SerĂș 52, Mendoza
M5500FNB Mendoza, Argentina
Tel: +54 261 424-5424