Re: C64 (or possible other CBMs too): PETSCII -> screen codes conversion table in ROM?

From: Rob Clarke <crock_at_clarke-family.org.uk>
Date: Mon, 12 Dec 2011 18:31:26 +0100
Message-ID: <1f1c51796385e6ab8e709d418d340be0.squirrel@www.clarke-family.org.uk>
> Hi,
> ......
> since it also prints onto the screen. But I want to avoid the "overhead"
> of calling CHROUT, so my question is: can I found a conversion table
> somewhere in the ROM, I can use, like this?
>

You may know this already but some C= aware assemblers (eg 64tass)
natively understand the C= screen codes, so you can define strings in your
source which get translated at compile time, thus saving you the trouble.

eg:

.enc screen
my_message .null "abc1234"
.enc none

would compile to:

$01, $02, $03, $31, $32, $33, $34, $00

Rob

       Message was sent through the cbm-hackers mailing list
Received on 2011-12-12 18:00:33

Archive generated by hypermail 2.2.0.