1
0
mirror of https://github.com/KarolS/millfork.git synced 2025-04-13 05:39:54 +00:00

Minor documentation fixes

This commit is contained in:
Karol Stasiak 2020-04-06 00:42:52 +02:00
parent 017019ef5a
commit 4485c9479e
2 changed files with 11 additions and 4 deletions

View File

@ -7,6 +7,8 @@ It requires an implementation of `void putchar(byte a)` and therefore works only
(see [the frequently provided definitions](./frequent.md) for details).
On targets with idiosyncratic behaviour of `putchar`, functions in this module inherit that behaviour.
All strings are assumed to be in the default encoding.
#### `void putstr(pointer str, byte len)`
Prints a string of length `len` located at address `str`.
@ -16,15 +18,20 @@ Prints a string of length `len` located at address `str`.
Prints a null-terminated string located at address `str`.
If the string is longer than 255 bytes, then the behaviour is undefined (might even crash).
#### `void putpstr(pointer pstr)`
Prints a length-prefixed string located at address `str`.
#### `void putword(word w)`
Prints the decimal representation of the 16-bit unsigned integer `w`.
#### `void putsigned16(signed16 w)`
#### `void putsigned16(signed16 x)`
Prints the decimal representation of the 16-bit signed integer `w`.
Prints the decimal representation of the 16-bit signed integer `x`.
#### `void ensure_mixedcase()`
On targets that have separate all-caps and mixed-case modes (like most Commodore machines), switches to the mixed-case mode.
On targets that have separate all-caps and mixed-case modes (like most Commodore machines), switches to the mixed-case mode.
On the remaining platforms, does nothing.

View File

@ -40,7 +40,7 @@ Modifies the given null-terminated buffer by appending a null-terminated string
## scrstring
The `scrstring` module automatically imports the `string` and [`err`](./other.md). modules.
The `scrstring` module automatically imports the `string` and [`err`](./other.md) modules.
It contains functions for handling strings in the screen encoding with the same semantics as the functions from the string module.