I don't understand. In the code snippet that doesn't work, "@0" is inside the macro definition. Why then does it not get expanded to just "0" when the macro gets expanded with "@0" set to "0", so there ends up being no "@" in the name of the routine? Steve From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of John Samperi Sent: Monday, January 23, 2012 11:53 AM To: AVR-Chat@yahoogroups.com Subject: Re: [AVR-Chat] assembler macros At 05:27 AM 24/01/2012, you wrote: >usart0_Init" error: > >.MACRO _USART_INIT >usart@0_Init: It would be an error if you have the extra @ in the name of the routine. Regards John Samperi ******************************************************** Ampertronics Pty. Ltd. 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA Tel. (02) 9674-6495 Website http://www.ampertronics.com.au *Electronic Design * Custom Products * Contract Assembly ******************************************************** [Non-text portions of this message have been removed]
Message
RE: [AVR-Chat] assembler macros
2012-01-23 by Steven Hodge
Attachments
- No local attachments were found for this message.