RE: [cc65] Print heart character on C64?

From: Raj Wurttemberg <rajw1c64.us>
Date: 2004-09-18 16:33:32
 
> the ascii (petscii) code...and dont forget to switch to 
> uppercase charset :)

Well... Simple code...

[start]
#include <stdio.h>
#include <stdlib.h>

int main (void)
{
    POKE(0xD018, 0x15);
    printf ("\nhello world! \x73");

    return EXIT_SUCCESS;
}
[end]

A little weirdness here. I told cc65 to use $73 but the .byte line in the
assembly shows it was converted to a $53:

L0001:
	.byte
$0D,$48,$45,$4C,$4C,$4F,$20,$57,$4F,$52,$4C,$44,$21,$20,$53,$00

Why did that happen? Am I doing something wrong? If I edit the assembly and
change the $53 back to a $73 it works properly and displays the heart
character. 

Thanks,
/*Raj*/

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Sep 18 16:33:33 2004

This archive was generated by hypermail 2.1.8 : 2004-09-18 16:33:42 CEST