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

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2004-09-22 15:57:52
Hello,

* On Wed, Sep 22, 2004 at 03:11:11PM +0200 Groepaz wrote:
 
> uhmz no, that would assume that the value to store in "vic+0x18" is
> always the same, ie the character rom is always located at the same
> place. like
> 
> VIC+0x18=0x15
> is _not_ portable, but
> VIC+0x18=CHARROM_LOWERCASE
> would be.

using what Greg King wrote, using

VIC+0x18 &= ~0x02 (for uppercase)
VIC+0x18 |= 0x02 (for lowercase)

(in whatever form you want to write VIC+0x18; I prefer Greg's original
format:
#include <c64.h>
VIC.addr &= ~(unsigned char)0x02;       /* upper/graphics char. display */
VIC.addr |=  (unsigned char)0x02;       /* lower/upper char. display */
)

would solve this issue, regardless of the content of the VIC register.
This approach only depends on the lowercase character set being located
after the uppercase one.

Regards,
   Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Sep 22 15:57:58 2004

This archive was generated by hypermail 2.1.8 : 2004-09-22 15:58:07 CEST