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

Add pstring module

This commit is contained in:
Karol Stasiak
2020-04-06 00:44:20 +02:00
parent 4485c9479e
commit 320b84edb9
12 changed files with 162 additions and 6 deletions

View File

@@ -51,3 +51,17 @@ It contains functions for handling strings in the screen encoding with the same
#### `word scrstrz2word(pointer str)`
#### `void scrstrzappend(pointer buffer, pointer str)`
#### `void scrstrzappendchar(pointer buffer, byte char)`
## pstring
The `scrstring` module automatically imports the [`err` module](./other.md).
It contains functions for handling length-prefixed strings in any 8-bit encoding.
#### `byte pstrlen(pointer str)`
#### `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)`