From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-09-16 10:27:49
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? > 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. Regards Uz -- Ullrich von Bassewitz uz_at_musoftware.de ---------------------------------------------------------------------- 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 10:27:58 CEST