[cc65] Charset handling question...

From: Andreas Koch <email1kochandreas.com>
Date: 2007-07-29 10:24:26
Hi all,

i have a question on the charset handling of C in general and CC65 in 
special ...

I'm in the process of writing an app that is going to be ported to 
various platforms and compilers/assemblers.
It internally works using ASCII and uses various access methods 
(including, on the c64, direct screen memory access) for in/output.

I allready defined some ASCII-Code <-> C64-Screencode translation tables 
(Like a=01 (c64) vs a=97 (Ascii)).

Now while
  poke(SCREEN+0,Ascii2Screen['a']);
works quite nicely,
  poke(SCREEN+1,Ascii2Screen['T']);
unfortunately doesn't - 'T' seems to be 212 (0xD4) in CC65, not 84 like 
in ASCII.

So:
1) in what encoding does CC65 by default store string/char literals?
2) is this a CC65 specialty or can i expect to find non-ASCII storage in 
other compilers as well?
3) can i switch CC65 to store as ASCII?
4) Is there some more sensible way to handle this (i can't just use
printf etc, because i really need various in/output methods including
rendering text to graphics, process files in ascii or petscii, and
process interpreted code working on that ASCII text)

thanks,
   Andreas



----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jul 29 10:24:01 2007

This archive was generated by hypermail 2.1.8 : 2007-07-29 10:24:04 CEST