Re: [cc65] Print heart character on C64?

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2004-12-08 11:54:08
Hello,

sorry for the late reply, somehow, I "overlooked" some mails. :-(

* On Wed, Dec 01, 2004 at 12:40:03PM +0200 Marko Mäkelä wrote:
 
> Hmm, don't you mean "M-W\x01\x02\x03"?

Yes, of course. Sorry for the confusion.

> As far as I've understood, the character set translation takes place
> at a later stage where the escapes are no longer available, i.e., the
> translator doesn't know if you typed "M" (which you would like to have
> translated) or "\x4d" (which you would like to be passed as such).

This is what I assumed, yes. I only wanted to be sure.

> >  sprintf(buffer, "M-W%c%c%c", 0x01, 0x02, 0x03);
[...]
 
> The parameters to sprintf are not char constants, are they?

No, they are not.

Regards,
   Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Dec 8 11:54:15 2004

This archive was generated by hypermail 2.1.8 : 2004-12-08 11:54:25 CET