Re: [cc65] Macro/asm problem

From: Shawn Jefferson <jefferson_shawn_a8bit1yahoo.com>
Date: 2004-06-01 15:44:21
--- Groepaz <groepaz@gmx.net> wrote:
> i have a solution for this that works almost
> perfectly: use the __LINE__
> symbol to generate the labels like this: (this
> avoids passing them to
> the macro as arguments)

Hey, that's great, seems to work perfectly.  My macro
becomes:

#define WAITSUZY \
  asm("@L%s:, __LINE__); \
  asm("bit $FC92"); \
  asm("bmi @L%s", __LINE__)

Ulrich, any reason not to use this syntax?

--
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 Tue Jun 1 15:44:25 2004

This archive was generated by hypermail 2.1.8 : 2004-06-01 15:44:34 CEST