Re: [cc65] Character set translation

Date view Thread view Subject view

From: Greg King (gngking_at_erols.com)
Date: 2002-02-22 08:57:14


-----Original Message-----
From: Ullrich von Bassewitz <uz_at_musoftware.de>
To: cc65_at_musoftware.de <cc65_at_musoftware.de>
Date: Thursday, February 14, 2002 04:44 PM
Subject: [cc65] Character set translation

> On Thu, Feb 14, 2002 at 10:06:00PM +0100, groepaz wrote:
> > OK, I just hacked some kind of character-test proggy.  While you
> > are at it, add these: :o)
>
> These two are OK, and I will add them:
>
> > _      0x5f    0xaf
> > |      0x7c    0x7d
>
> But, I'm not sure about the others.  Is it really a good idea to map the
> backslash to the forward-slash, and some other characters to line-drawing
> characters?  Please note that I'm not saying that it is a bad idea (I'm not
> sure about it), I'm just trying not to be hasty.
>
> For all those that don't have a PETSCII-table laying around:
>
> > \      0x5c    0x2f (or, 0x5f if 0x2f causes probs.)
>
> 0x2F is the forward-slash, 0x5F is the back-arrow.
>
> > `      0x60    0x27
>
> 0x27 is the apostrophe.
>
> > {      0x7b    0xaa
>
> 0xAA is a vertical bar on the left side of the character-cell.
>
> > }      0x7d    0xb4
>
> Same as 0xAA, but on the right.
>
> > ~      0x7e    0xa3
>
> 0xA3 is a horizontal bar at the top of the character-cell.
>
> Should I really use these mappings?  More opinions?

I use these mappings:

      ASCII => PETSCII
-----------------------
_      0x5f    0xa4
`      0x60    0xad
{      0x7b    0xb3
|      0x7c    0xdd
}      0x7d    0xab
~      0x7e    0xb7

The first one is thinner than Groepaz's choice; the last one is thicker.
The second one looks like a giant version of that ASCII accent-grave.
The third and fifth ones look like "pinched" braces.
The fourth one is the same as Groepaz's character,
but it is the "official" PETSCII value.


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-02-22 08:59:18 CET