Subject: m68k Asm and C
To: NetBSD/mac68k <port-mac68k@netbsd.org>
From: Andy Finnell <andyf@vei.net>
List: port-mac68k
Date: 06/18/1999 21:39:56
I'm trying to define a C macro (using #define) that contains m68k
assembly.  In the assembly I use literals that start with '#'.  gcc
complains about this because it wants a macro argument after '#'. 
Here's the code:

#define SYSCALL(x)      .even; ENTRY(machdep_sys_ ## x); \
                        movl \#SYS_ ## x,d0; trap \#0; jcs err; rts

Unfortunately, I don't know m68k asm that well at all.  Any help?

	-andy