Re: [cc65] Newbie-Question

From: MagerValp <MagerValp1cling.gu.se>
Date: 2004-07-27 15:28:05
>>>>> "TL" == Thomas Linke <thomas@ist-nicht-bloe.de> writes:

TL> Every time I start my compiled program on my C64-emulator the
TL> letters switch to big/small-letters, but I need big-letters and
TL> graphic-signs and I donīt want that you can switch it with the
TL> keyboard after start.

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);


PS: Uz, I have a small filter that I'm using with cbm-hackers that
    strips HTML from incoming mail, would you be interested in it?

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
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 Jul 27 15:28:09 2004

This archive was generated by hypermail 2.1.8 : 2004-07-27 15:28:18 CEST