Re: [cc65] Atari TGI drivers, finally

From: Fatih Aygün <cyco1301yahoo.com>
Date: 2009-10-24 03:06:44
Hi,

> COLOR_WHITE isn't defined as 1 on the apple2 too, so I don't think
> your statement holds true. However I seem to remember that it was true
> for older versions of that sample program so probably you're refering
> to an obsolete version of tgidemo ?!?

It should be a fairly recent snapshot (2 or 3 days ago):

>> $ cc65 --version
>> cc65 V2.13.9
>> SVN version: unknown

The problem is that "tgidemo.c" says (lines 10-11):

#define COLOR_BACK    COLOR_BLACK
#define COLOR_FORE    COLOR_WHITE

... and it uses COLOR_BACK and COLOR_FORE as palette indices,
e.g. line 178:

    tgi_setcolor (COLOR_FORE);

For a 2-color driver the only valid values are 0 and 1. It was a very subtle
error, and I had a hard time understanding what was going on :)


> Some of the code is taken from the c64 and apple drivers.
> All code found both in the c64 and apple2 drivers originates in the
> c64 driver (not the apple2 driver). All other apple2 code is very
> likely not reusable...

Yes. The readme file is somewhat old. Now I see that it's just the circle
routine, which is from the c64 stuff...

Best regards,
Fatih.


      
----------------------------------------------------------------------
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 Oct 24 03:06:52 2009

This archive was generated by hypermail 2.1.8 : 2009-10-24 03:06:55 CEST