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

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-09-22 16:53:05
On Wed, Sep 22, 2004 at 04:18:52PM +0200, Groepaz wrote:
> however, if a macro could be made that takes the location of an upper- and
> lowercase character as an input, and which returns the proper value for
> vic+0x18 depending on the selected character set the whole thing would be
> even consistant for user-defined charsets (which is not bad ofcourse,
> just imho not necessary). however dont forget that you will need a second
> macro that returns the vic-bank (0xdd00 on a c64) then. also if this
> would be done, there should be constants that define the location of the
> system charactersets in memory.

There are three known platforms with a VICII: The C64, the C128 and the
CBM510. The former two have the VIC at the same address, while the latter is
extremely rare, and it has the VIC in another bank that cannot be accessed
directly by writing to the VIC struct (and no, POKE doesn't work either). So
the discussion is somewhat hypothetical, because for most programs, doing

        POKE (0xD018, 0x15);

or

        VIC.addr = 0x15;

is quite ok. Gregs solution

        VIC.addr &= ~0x02;
        VIC.addr |= 0x02;

is already an improvement, that will probably cover more than 99.9% of all
programs. So I don't see an urgent need for adding additional macros. If
you're really writing a program that does not work with the above, the need
for such a macro will be one of your smallest problems.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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 16:53:10 2004

This archive was generated by hypermail 2.1.8 : 2004-09-22 16:53:18 CEST