AW: [cc65] Programs switch to lowercase on C64.

From: Thomas Linke <thomas1ist-nicht-bloe.de>
Date: 2004-09-18 08:54:44
> Betreff: [cc65] Programs switch to lowercase on C64.
> 
> 
> I _know_ this was discussed some time ago and I made a mental 
> note of it...
> But I lost the mental yellow sticky. :) 
> 
> When a cc65 compiled C64 program runs it immediately switches 
> to the lower/upper case character set. How do I change it 
> back to the uppercase/graphic character set?

Hi!

I think I was the last who asked, and MagerValp has answered this to me:

----8<----
You control the font with $d018. cc65 changes it to $17, and you can change
it back to $15 with:

  *(unsigned char *)0xd018 = 0x15;

or the slightly more readable:

  #define Poke(A,X) (*(unsigned char *)A) = (X)
  #define Peek(A)   (*(unsigned char *)A)
  #define PokeW(A,X) (*(unsigned int *)A) = (X)
  #define PeekW(A)   (*(unsigned int *)A)

  Poke(0xd018, 0x15);
----8<----

Regards

Thomas Linke

----------------------------------------------------------------------
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 08:56:53 2004

This archive was generated by hypermail 2.1.8 : 2004-09-18 08:57:02 CEST