From fd42245cc042265c5202670c100fd82e7b69efd9 Mon Sep 17 00:00:00 2001 From: Dieter Baron Date: Sat, 10 Aug 2024 12:25:13 +0200 Subject: [PATCH] Add petscii_lowercase string encoding. --- share/target/c64-encodings.inc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/share/target/c64-encodings.inc b/share/target/c64-encodings.inc index f3beb2c..2833676 100644 --- a/share/target/c64-encodings.inc +++ b/share/target/c64-encodings.inc @@ -219,4 +219,23 @@ } } +.string_encoding petscii_lowercase { + base { + petscii { + use [ + : $00 - $40: $00 + : $5b - $60: $5b + : $7b - $7d: $7b + : $80 - $a8: $80 + : $aa - $b9: $aa + : $bb - $bf: $bb + ] + } + } + ranges [ + : $41 : "a" - "z" + : $61 : "A" - "Z" + ] ; TODO: add $7e, $7f, $a9, $ba +} + .default_string_encoding petscii