Re: [cc65] Atari Text Colors

From: Christian Grössler <chris1groessler.org>
Date: 2010-10-01 22:16:29
Hello Oliver,

On 01.10.10 21:51, Oliver Schmidt wrote:
> Hi,
>
> I just noticed that on the Atari textcolor() is a dummy. Some remarks
> from my side:
>
> 1. It would be nice, if the Atari documentation section would provide
> a hint on that limitation - i.e. like I did for the Apple II:
> http://www.cc65.org/doc/apple2-8.html#ss8.3

Thanks. I will change the documentation accordingly.

> 2. In atari.h there is:
> /* Note that the conio color implementation is monochrome (bgcolor and
> textcolor are only placeholders) */
>
> This statement doesn't seem quite right as bgcolor() seems to have
> both code and an effect.

Yes. In fact you can set the background color, but the text color will always be
the same color with a different luminance. I'll change also this comment.

> 3. In apple2.h there is:
> /* The following #defines will cause the matching functions calls in conio.h
>   * to be overlaid by macros with the same names, saving the function call
>   * overhead.
>   */
> #define _textcolor(color)       COLOR_WHITE
> #define _bgcolor(color)         COLOR_BLACK
> #define _bordercolor(color)     COLOR_BLACK
>
> This saves quite some bytes when porting "colorful" CBM-biased coding
> to the Apple II as all call sites are removed. I pretty sure the Atari
> would benefit from doing something similiar for textcolor() -
> especially as the default linker config offers relatively little
> memory!

Will do, too.

Thanks for the hints,
chris
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Oct 1 22:16:55 2010

This archive was generated by hypermail 2.1.8 : 2010-10-01 22:16:58 CEST