From: Marc 'BlackJack' Rintsch (marc_at_rintsch.de)
Date: 2003-05-10 19:54:31
On Saturday 10 May 2003 20:02, Groepaz wrote:
> > Maybe invoking the assembler with '-t c64' might be a quick fix as
> > on the commodore the msb is also set. And ca65 produces the correct
> > codes for the c64.
>
> not true.... on c64 the lowercase and uppercase characters are
> swapped against each other (compared to ascii).
It *is* true! Additionally to the swapped case the msb is set.
Translating his code with '-t c64' produces C5 CA C5 C3 D4 for "EJECT",
exactly as he wanted.
The c64 manual lists the "normal" ASCII values with swapped case and
says codes 192-233 and 224-254 are the same as 96-127 and 160-190 (all
decimal). The ROM routines are using the higher ones. It was fun to
debug a piece of code, developed with a cross assembler which produced
just case swapped ASCII code. There was a filename in there and that
damn thing always ran into a "file not found". I've listed the dir and
looked at the filename with a monitor but couldn't tell a difference -
until I examined the dir with a disk editor and found out it was exatly
the same name but with msb set. :-/
Ciao,
Marc 'BlackJack' Rintsch
--
bored? tip 21: cat /dev/random
still bored? tip 22: cat /dev/random | grep Linux
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-05-10 19:55:56 CEST