From: Groepaz (groepaz_at_gmx.net)
Date: 2000-12-09 01:50:31
hyho!
i think i have spotted a bug in the assembler, which is ...
lda (foo)+bar,y
would incorrectly give an 'illegal adressmode' error, were
lda bar+(foo),y
would work perfectly fine.
i guess the assembler first detects the adressing-mode before it evaluates
the expression (and possibly used, and maybe nested, braces). this should
be easily fixed by checking if the last char before the ',y' is a brace
aswell ;)
another thing i noticed is a problem with macros, that is the fact that c-
style '.define' macros won't allow more than one line. i was porting some
code that used macros like
#define AREA(x) =COUNT;COUNT+=x;
which were used as in...
foo AREA(100)
bar AREA(200)
etc
so far i couldnt reproduce this behaviour in ca65, and it looks to me like
allowing multiple lines in c-style macros would be the way to go ;)
--
----------------------------------------------------------------------
/^\
\ /
ASCII RIBBON CAMPAIGN X AGAINST HTML JUNK MAIL
/ \
----------------------------------------------------------------------
___ ___ .___________________ .___________ _______.
c=64 / | \| \__ ___/ \ \_ _____/ \ \ groepaz
cgb / ' \ | | | / \ / \ | __)_ / | \
psx \ . / | | |/ ' \| \/ | \
dc \___|_ /|___| |____|\____|__ /_______ /\____|__ /
\/ ' \/ \/ \/
http://www.hitmen-console.org Hitmen WWW Headquarters
http://fly.to/hitmen-groepaz my personal playground
----------------------------------------------------------------------
----------------------------------------------------------------------
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 : 2001-12-14 22:05:37 CET