From: Groepaz (groepaz_at_gmx.net)
Date: 2003-09-16 16:21:24
On Tuesday 16 September 2003 10:27, Ullrich von Bassewitz wrote: > On Tue, Sep 16, 2003 at 05:33:37AM +0200, Groepaz wrote: > > register unsigned short x; > > register unsigned char xx; > > > > #define uaddsc(__a,__x) __asm__ ("lda %v", __x); \ > > __asm__ ("clc"); \ > > __asm__ ("adc %v", __a); > > > > uaddsc(x,xx); > > > > gives me "identifier expected for argument 1" for the first line of the > > macro (it works with __a instead of __x) > > Works here. Are you sure there is no whitespace after the '\' terminating > the macro lines? errrr.....sorry :o) i removed the __AX__ stuff from macros and one macro call like uaddsc(x,(xx>>1)) was left, correctly causing the above error :=P > > for this (and maybe other things) some feature in the inline assembler to > > get rid of the dollar-sign might come in handy :) > > Or better add something like %s which converts arbitrary tokens into a > string. yeah....whatever needs to be done so --feature dollars_in_identifiers doesnt need to be used :O) gpz ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-09-16 16:26:36 CEST