Re: [cc65] PETSCII Translation

From: Groepaz <groepaz1gmx.net>
Date: 2005-07-29 08:18:24
On Friday 29 July 2005 06:12, Payton Byrd wrote:
> Does anyone here have a good lookup map for PETSCII to
> ASCII and vice-versa?  I've been trying to use the
> arrays from Craig Bruce's PETCOM, but there's just
> tons of problems with it and now I'm just about lost
> sitting here with the C128 PRG and trying to figure
> out the nuances of codes 192-223 and whether they
> should be twisted to the 96-127 range, or if I should
> leave them alone.
>
> The problem is that if I twist them to 96-127, then
> when they get twisted from ASCII to PETSCII they don't
> wind up with the original PETSCII values and so my
> unit tests fail.  I was able to tweak the tables to
> pass my unit tests, but then when I wound up with a
> reverse twist from the 96-127 range to 192-223 when
> that's not what was intended.
>
> If anyone knows where there's a good PETSCII chart
> that shows all 255 characters and for both character
> sets, I'd be greatly appreciative.

a) look at the cc65 source :o)

b) you'll always end up with problems, the conversion is not reversible.

-- 

http://www.hitmen-console.org
http://www.gc-linux.org/docs/yagcd.html
http://www.pokefinder.org
http://ftp.pokefinder.org

Homes for the homeless, jobs for the jobless, neverthe for the nevertheless.

----------------------------------------------------------------------
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 Jul 29 08:18:32 2005

This archive was generated by hypermail 2.1.8 : 2005-07-29 08:18:35 CEST