Re: [cc65] using screen codes instead of PETSCII

From: Gábor Lénárt <lgb1lgb.hu>
Date: 2011-11-28 15:30:22
On Sun, Nov 27, 2011 at 11:48:12AM +0100, Ullrich von Bassewitz wrote:
> 
> On Sun, Nov 27, 2011 at 06:39:56AM +0200, thefox xofeht wrote:
> > I'm not sure what exactly you mean by "screen codes", but .repeat
> > comes in handy when using .charmap.
> 
> Nice idea. I didn't even realize that this works - and I'm the creator :-)

It's nice for me this way :)

.REPEAT 26,l
.CHARMAP l+97,l+1 ; lower case
.CHARMAP l+65,l+65 ; upper case
.ENDREP
.CHARMAP 64,0  ; @
.CHARMAP 95,100   ; _

I have something like this for now. However it would be handy, if .CHARMAP
supports mapping a "pool" not just one character, like this:

.CHARMAP 1..9, 11..19   ; map 1..9 -> 11..19

Maybe the second ..20 is not even needed as length of the range is already
defined by the first parameter. I don't even dare to mention too much to
allow multiple values with a single .CHARMAP like:

.CHARMAP 1..9,11..19,   20,23 ; map 1..9->11..19, and 20 -> 23

Well, I think it's a bit odd in syntax (the .. is that as well), so maybe
it's not even a good idea to implement at all ...
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Nov 28 15:30:42 2011

This archive was generated by hypermail 2.1.8 : 2011-11-28 15:30:46 CET