mirror of
https://github.com/KarolS/millfork.git
synced 2025-04-13 21:37:08 +00:00
Change PETSCII encoding to match CC65 and readkey
This commit is contained in:
parent
cb0718b433
commit
5fb6efbd61
@ -2,6 +2,10 @@
|
||||
|
||||
## Current version
|
||||
|
||||
* **Breaking change!**
|
||||
The `petscii` encoding now uses the $C0-$DE range for uppercase characters instead of $60-$7E.
|
||||
This matches both the CC65 behaviour and the return values from `readkey()`.
|
||||
|
||||
* Added `segment` block statement.
|
||||
|
||||
* Added goto.
|
||||
|
@ -278,8 +278,11 @@ object TextCodec {
|
||||
"\ufffd" * 32 +
|
||||
0x20.to(0x3f).map(_.toChar).mkString +
|
||||
"@abcdefghijklmnopqrstuvwxyz[£]↑←" +
|
||||
"–ABCDEFGHIJKLMNOPQRSTUVWXYZ\ufffd\ufffd\ufffdπ",
|
||||
Map('^' -> 0x5E, '♥' -> 0x73, '♡' -> 0x73, '♠' -> 0x61, '♣' -> 0x78, '♢' -> 0x7A, '•' -> 0x71), Map.empty, Map(
|
||||
"\ufffd" * 32 + // 60-7f
|
||||
"\ufffd" * 32 + // 80-9f
|
||||
"\ufffd" * 32 + // a0-bf
|
||||
"–ABCDEFGHIJKLMNOPQRSTUVWXYZ\ufffd\ufffd\ufffdπ", // c0-df
|
||||
Map('^' -> 0x5E, '♥' -> 0x73, '♡' -> 0x73, '♠' -> 0xC1, '♣' -> 0xD8, '♢' -> 0xDA, '•' -> 0xD1), Map.empty, Map(
|
||||
"n" -> List(13),
|
||||
"q" -> List('\"'.toInt),
|
||||
"apos" -> List('\''.toInt),
|
||||
|
Loading…
x
Reference in New Issue
Block a user