Re: [cc65] TGI preview

From: Ullrich von Bassewitz <>
Date: 2009-11-13 00:10:33

On Thu, Nov 12, 2009 at 03:00:56PM -0800, Fatih Ayg√ľn wrote:
> Could you tell me where the toascii symbol is defined so that I can make a quick
> test for atari?

Sorry, I forgot about that one. The stroke fonts are indexed by the ascii code
of the characters. Since many of the platforms have character sets that are
different, either the font files would have to be platform dependent, or a
translation into a common set is necessary. I've decided to add the latter,
since this is also useful for other stuff, like modem communication or similar
(browsing the internet :-). So a new function named toascii() is in ctype.h.
It has to be added to the platforms.

To make the source compile on the Atari, you have to add

    unsigned char __fastcall__ toascii (unsigned char c)
    /* Convert a target specific character to ascii */
        /* Do conversion from ATASCII to ASCII here */

to tgi-preview.c (and fill in the necessary conversion code, of course :-). If
you have a working function, please send it to Christian for inclusion into
the head branch.

Another thing is that the current font files do only contain characters in the
(ASCII) range 0x20 .. 0x7E. This will probably change in future versions.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Nov 13 00:10:41 2009

This archive was generated by hypermail 2.1.8 : 2009-11-13 00:10:44 CET