[cc65] ca65: Problem with generic labels...

From: Christian Krüger <Christian.Krueger1pace.de>
Date: 2007-07-08 21:13:34
Hi,

I've tried to build some generic .proc names of 
routines which are called in sequence but have no success:

.repeat 9, DLIcount
.proc .ident(.concat("DLI",.string(DLIcount)))
       MyMacro .ident(.concat("DLI",.string(DLIcount+1)))
.endproc
.endrepeat

.proc DLI10
      ....
.endproc

wont't work (ca65 comes up with some errors and .string
also seems to behave strange and does not convert the
number to the desired labels "DLI1","DLI2" etc..


Another try with .proc .ident(.sprintf("DLI%d",DLIcount))
also failed - complaining that the expression is not constant?!

Any suggestions?

TIA
chrisker


----------------------------------------------------------------------
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 Jul 8 21:13:48 2007

This archive was generated by hypermail 2.1.8 : 2007-07-08 21:13:51 CEST