Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] assembler macros

2012-01-23 by Steven Hodge

I want the routine to end up being named "usart0_Init" and that is what the
call instruction uses.   The name inside the macro definition has "@0" in it
so that I'm hoping the "@0" will get replaced with the value "0" when the
macro is invoked, to end up with just "usart0_Init" as the name.  Yes, it
does appear that the "@" does not get purged, ending up with "usart@0_Init"
as the name, but I don't understand why.  Why does the parameter
substitution not work?  Steve

 

From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of John Samperi
Sent: Monday, January 23, 2012 12:10 PM
To: AVR-Chat@yahoogroups.com
Subject: RE: [AVR-Chat] assembler macros

 

  

At 07:00 AM 24/01/2012, you wrote:
>I don't understand.

Neither do I :-) , you are calling the routine
usart@0_Init: and NOT usart0_Init: see the extra @?

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]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.