Re: [cc65] ca65: .string() function.

From: Greg King <>
Date: 2013-09-19 21:32:11
From: "Jeremy Turner"; on Wednesday, September 18, 2013; at 6:48 PM -0400
> I really enjoy the macro system of ca65, and often use the macro code for
> some fairly elaborate purposes; but sometimes, it's hard to debug errors.
> I often use something like:
> .out .sprintf("parameter is: %s", .string(.mid(0,3,{foo} ) ) )
> Which sometimes works; but sometimes, it seems the token list contains
> incompatible characters that the assembler recognizes as control
> characters, like close parenthesis ")", equals "=", etc. The logical step
> is to use:
> .out .sprintf("parameter is: %s", .string({ .mid(0,3,{foo} ) }) )
> But, that doesn't seem to make the assembler happy either.
> Is someone able to look at this functionality?

.string() accepts only one name or one number value.  It rejects more than 
one token.  It rejects characters that aren't allowed in numbers and symbol 

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Sep 19 22:33:08 2013

This archive was generated by hypermail 2.1.8 : 2013-09-19 22:33:10 CEST