Re: [cc65] command line args

From: carlos <carlosofcascade1gmx.net>
Date: 2004-05-14 10:48:20
Hello Ullrich,

i remember now, why i used the deprecated .define instead of variables.
If you use the .repeat xyz command inside a .proc .endproc statement, and if
the xyz is defined outside the .proc,
the assembler shouldn't know about xyz within the procedure. Thats the
scoping rulez of ca65.
I didn't realize that, because i thought xyz is a global variable.
But instead of a  "xyz not known" error message, the assembler outputs
"constant expression detected", which doesn't give you a clue about what has
happened. Using .define it is much less complicate in this case.

Greetings Carlos


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri May 14 10:48:29 2004

This archive was generated by hypermail 2.1.8 : 2004-05-14 10:48:35 CEST