[cc65] function style macro usage

From: Tobias Pflug <tobias.pflug1gmx.net>
Date: 2009-03-15 00:39:16
hi,

I recently started using ca65 for the 65816(snes) and so
far I quite like it. My question concerns macro usage. What
I would really, really like/need to do in order to stay with
my previous coding habits is support for function like macro
defines such as for example (in gcc syntax ..)

#define setup_bg1(map,char) (map>>12|char>>8)
lda setup_bg1($2000,$00)
sta FOOBAR

The way I see it neither .define nor .macro are quite cut out
for this. Is there some way this or something syntactically close? :)
If not, what are the chances of getting support for this ? It would
help me a ton.

best regards,
Tobi

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Mar 15 00:39:21 2009

This archive was generated by hypermail 2.1.8 : 2009-03-15 00:39:23 CET