Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Ads

Discussion Groups

Discussion Groups | Piclist | Re: labels

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.

Re: labels - Chad Russel - Jan 23 12:34:00 2004

--- 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




(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )