# HG changeset patch # User Jonas Hultén # Date 1727459643 -7200 # Fri Sep 27 19:54:03 2024 +0200 # Branch develop # Node ID 5e9c7565997dfdd326732131f2a5b095f0d1ec5e # Parent c2aef45fba47d07275abf9756be4c76415d4cbde Updated documentation with new character conversion platforms. diff --git a/jasm/docs/jasm.md b/jasm/docs/jasm.md --- a/jasm/docs/jasm.md +++ b/jasm/docs/jasm.md @@ -2053,7 +2053,7 @@ To support different platform's character sets there is a `[6502]|string()` function that is used to convert unicode strings, which is the default string type, to other character sets. [6502] - const PET_HELLO = string("Hello", "petscii", "lowercase") + const PET_HELLO = string("Hello", "pet", "lowercase") The function takes a number of arguments. First the string to convert, then a number of conversion properties which specifies the format, subformat, locale and flags for the conversion, in any order. @@ -2069,8 +2069,32 @@ 7 bit ascii format. - petscii - The character set used in Commodore 8 bit computers. + pet + The character set used in Commodore PET models after PET 2001. + + + pet2001 + The character set used in the Commodore PET 2001 model. + + + vic20 + The character set used in the Commodore VIC 20. + + + c16 + The character set used in the Commodore 16. + + + plus4 + The character set used in the Commodore Plus/4. + + + c64 + The character set used in the Commodore 64. + + + c128 + The character set used in the Commodore 128. zx80 @@ -2097,18 +2121,18 @@ lowercase - petscii - The petscii character set with both lower and uppercase characters. + pet2001, pet, vic20, c16, plus4, c64, c128 + The character set with both lower and uppercase characters. uppercase_screen - petscii - The petscii character set as screen codes. + pet2001, pet, vic20, c16, plus4, c64, c128 + The character set as screen codes. lowercase_screen - petscii - The petscii character set with both lower and uppercase characters as screen codes. + pet2001, pet, vic20, c16, plus4, c64, c128 + The character set with both lower and uppercase characters as screen codes. diff --git a/jasm/website/site/docs/index.html b/jasm/website/site/docs/index.html --- a/jasm/website/site/docs/index.html +++ b/jasm/website/site/docs/index.html @@ -2154,7 +2154,7 @@

To support different platform's character sets there is a string() function that is used to convert unicode strings, which is the default string type, to other character sets.

-
const PET_HELLO = string("Hello", "petscii", "lowercase")
+
const PET_HELLO = string("Hello", "pet", "lowercase")
 

The function takes a number of arguments. First the string to convert, then a number of conversion properties which specifies the format, subformat, locale and flags for the conversion, in any order.

@@ -2171,8 +2171,32 @@ 7 bit ascii format. - petscii - The character set used in Commodore 8 bit computers. + pet + The character set used in Commodore PET models after PET 2001. + + + pet2001 + The character set used in the Commodore PET 2001 model. + + + vic20 + The character set used in the Commodore VIC 20. + + + c16 + The character set used in the Commodore 16. + + + plus4 + The character set used in the Commodore Plus/4. + + + c64 + The character set used in the Commodore 64. + + + c128 + The character set used in the Commodore 128. zx80 @@ -2199,18 +2223,18 @@ lowercase - petscii - The petscii character set with both lower and uppercase characters. + pet2001, pet, vic20, c16, plus4, c64, c128 + The character set with both lower and uppercase characters. uppercase_screen - petscii - The petscii character set as screen codes. + pet2001, pet, vic20, c16, plus4, c64, c128 + The character set as screen codes. lowercase_screen - petscii - The petscii character set with both lower and uppercase characters as screen codes. + pet2001, pet, vic20, c16, plus4, c64, c128 + The character set with both lower and uppercase characters as screen codes.