On Saturday 18 September 2004 16:33, Raj Wurttemberg wrote: > 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. that happens because cc65 converts the charset encoding (from ascii to petscii in this case). however, i am not sure if this is correct behaviour here (when using \x).... no idea what the standard says here. as a workaround you can do printf ("\nhello world! %c",0x73); ... but thats kinda ugly, i know :=P UZ might be able to say more about this... gpz ---------------------------------------------------------------------- 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:38:21 2004
This archive was generated by hypermail 2.1.8 : 2004-09-18 16:38:30 CEST