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

From: Ullrich von Bassewitz <>
Date: 2013-09-24 23:23:56
Good evening ...

... and sorry for the delay. I've catched a cold while on a hiking vacation,
so the vacation ended in bed for a few days :(

As Greg has already stated, .string accepts only one token as argument, which
is then converted to a string token. In addition, .string only accepts
identifiers and numerical values as input. It doesn't even like strings as

There is also no way to convert arbitrary tokens into strings (except from
.match'ing them all one by one). All this is because strings aren't native
data types in the assembler. The only native data type known is an integer.
Strings are an add-on, bolted somewhere into the the scanner. If you have ever
wondered why one must use .concat to concatenate two strings instead of the
more intuitive '+' operator: it's for the same reason.

Sorry for the bad news.



Ullrich von Bassewitz                        
Encrypted email preferred                          PGP Key-Id: 29D93B10
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Sep 24 23:24:06 2013

This archive was generated by hypermail 2.1.8 : 2013-09-24 23:24:08 CEST