Re: [cc65] octal character constants bug (again :=P)

Date view Thread view Subject view

From: Adam Dunkels (adam_at_sics.se)
Date: 2003-09-30 21:02:15


Hi Uz!

On Tue, 2003-09-30 at 20:54, Ullrich von Bassewitz wrote:
> On Tue, Sep 30, 2003 at 08:33:29PM +0200, Groepaz wrote:
> > mmmh... looks like this is still screwed :(
> [...]
> > weird how '\17' works correctly, but '\10' gives a wrong value which is even
> > larger :=P
>                                  
> It's not a bug, it's a feature, and it's name is: Character set translation:-)
> 
> The character codes are translated into PETSCII, which explains the effect
> you've noticed.

While we're on the subject: can the charmap directive be used to turn
the PETSCII translation on and off in an easier way than to have
#charmap(0x00, 0x00), #charmap(0x01, 0x01), etc? 

Thanks,

/adam
-- 
Adam Dunkels <adam_at_sics.se>
http://www.sics.se/~adam/

----------------------------------------------------------------------
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 : 2003-09-30 21:04:19 CEST