[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] How to do multi-line assembler macros?

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] How to do multi-line assembler macros?
Date: Tue, 9 Sep 2003 19:54:55 +0200 (MET DST)

As Brian Dean <address@hidden> wrote:

>There are lots of servos, so I'd like to write a macro like this:
>#define RESET_SERVO(servo) \
>       lds     r##servo, servo_##servo ;\

IIRC, the $ sign is used as a logical line terminator.

Yep.  How's that proverb?  ``All documentation files usually end up in
.c.''  This is from gas/config/tc-avr:

const char comment_chars[] = ";";
const char line_comment_chars[] = "#";
const char line_separator_chars[] = "$";

J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]