1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-01-22 19:16:01 +00:00

Fix and improve stdlib optimizations

This commit is contained in:
Karol Stasiak
2020-07-24 22:18:25 +02:00
parent ff03b50668
commit 9a67ac553d
6 changed files with 134 additions and 31 deletions

View File

@@ -54,7 +54,7 @@ It contains functions for handling strings in the screen encoding with the same
## pstring
The `scrstring` module automatically imports the [`err` module](./other.md).
The `pstring` module automatically imports the [`err` module](./other.md).
It contains functions for handling length-prefixed strings in any 8-bit encoding.
@@ -62,6 +62,14 @@ It contains functions for handling length-prefixed strings in any 8-bit encoding
#### `sbyte pstrcmp(pointer str1, pointer str2)`
#### `void pstrcopy(pointer dest, pointer src)`
#### `void pstrpaste(pointer dest, pointer src)`
#### `word pstr2word(pointer str)`
#### `void pstrappend(pointer buffer, pointer str)`
#### `void pstrappendchar(pointer buffer, byte char)`
#### `word pstr2word(pointer str)`
Converts a length-prefixed string to a number. Uses the default encoding.
Sets `errno`.
#### `word pscrstr2word(pointer str)`
Converts a length-prefixed string to a number. Uses the screen encoding.
Sets `errno`.