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

From: Greg King <gngking1erols.com>
Date: 2004-09-21 10:19:07
From: Ullrich von Bassewitz; on Date: September 18, 2004, 04:42 AM -0400
>
> On Sat, Sep 18, 2004 at 08:54:44AM +0200, Thomas Linke wrote:
> > ----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:
> [...]
>
> Even better:
>
>         #include <peekpoke.h>
>
>         POKE (0xD018, 0x15);

Well, actually, the "official" way to do that particular task is to use
the VIC-II's structure declaration:

#include <c64.h>

VIC.addr &= ~(unsigned char)0x02;       /* upper/graphics char. display */
VIC.addr |=  (unsigned char)0x02;       /* lower/upper char. display */

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Sep 21 10:34:07 2004

This archive was generated by hypermail 2.1.8 : 2004-09-21 10:34:46 CEST