For that little “Escape” thingy I did, I also programed a small tool, to convert PCX-files to Atari VCS assembler DB statements.
(PCX is a graphics format used in the last millenium).
What it does is, convert something like this:
to something like:
… and so on.
Not really impressive :-).
Anyway the source, along with other nonsense stuff that was compiled into it: PCX2VCS.ZIP