[cc65] Macro/asm problem

From: Shawn Jefferson <jefferson_shawn_a8bit1yahoo.com>
Date: 2004-05-27 18:09:18
I've having a problem with a macro that inserts some
assembly code into my program.

Here is the macro:

#define WAITSUZY            \
    asm("\tbit\t$fc92\n"    \
	"\tbmi *-3\n")

When I compile a program with this macro in it, it
complains about an Identifier expected on the "bmi"
line.  When looking at the .s file, the bmi has been
changed to "jmi", which I assume is normal?

What error am I making?  This is the first time I've
tried to use a macro with assembly code and branching.

--
Thanks,
Shawn Jefferson


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu May 27 18:09:24 2004

This archive was generated by hypermail 2.1.8 : 2004-05-27 18:09:32 CEST