A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
--- In , "sergio masci" <smypl@x> wrote: > > ----- Original Message ----- > From: Chad Russel <chadrussel@y...> > To: <> > Sent: Friday, January 23, 2004 1:31 AM > Subject: Re: [piclist] labels > > I think the work around would be easy enough in MPASM, I assumed an > > actual code change during execution was wanted. > > > > What I wish is to redefine a macro. Will XCASM allow that? MPASM will > > not, and I have not figured out a work around. No matter what I have > > tried, it wants to throw up all over my builds. :-( > > > > Chad > > No XCASM will not "currently" allow you to redefine a macro. It would be > simple to implement dynamic macros in a manor similar to dynamic labels. > > What is it that you are trying to do exactly? Perhaps we could suggest a > solution if we knew what you are trying to do. > > Regards > Sergio Masci Very simple. The first macro instance produces an expansion, then next and following instances produces a call to the first. I have done this before, by following the macro definition with a new definition, but MPLAB sees it one way the first pass, and the second way the second pass, producing errors. Chad |