[cc65] .repeat and .sprintf

From: thefox xofeht <thefox1aspekt.fi>
Date: 2011-01-04 03:39:56

Can somebody explain me the logic behind the following behaviour:

.repeat 10, xyz
    .assert .const(xyz), error
    .byte .sprintf("foo%d", xyz)

The .assert doesn't trip, but I get this error in the .byte line:

foo.inc(3): Error: Constant expression expected

If I replace "xyz" with a constant number (in .sprintf) the code
compiles. Is this a bug or a feature, and does a workaround exist? :)

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 Jan 4 03:40:07 2011

This archive was generated by hypermail 2.1.8 : 2011-01-04 03:40:10 CET