1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-07-28 04:28:55 +00:00
millfork/docs/stdlib/frequent.md

62 lines
1.3 KiB
Markdown
Raw Normal View History

2018-12-17 16:18:29 +00:00
[< back to index](../index.md)
Definitions on the following list are frequently provided by the default automatically-imported modules.
However, as they are not the part of the standard library, they might not be available on all targets:
#### `void putchar(byte char)`
Prints a single character.
Available for: all computer targets.
#### `void new_line()`
Moves the cursor to the next line.
Available for: all computer targets.
2018-12-19 18:01:53 +00:00
#### `pointer readline()`
Reads a line from the console and returns a pointer to a null-terminated string.
The string is valid only until next read from the console.
2018-12-19 21:32:55 +00:00
Available for:
ZX Spectrum,
Commodore 64 with `c64_basic` module,
Commodore 16 or Plus/4 with `c264_basic`.
2018-12-19 18:01:53 +00:00
#### `word readword()`
Reads a 16-bit unsigned integer from the console.
2018-12-19 21:32:55 +00:00
Available for:
ZX Spectrum,
Commodore 64 with `c64_basic` module,
Commodore 16 or Plus/4 with `c264_basic`.
2018-12-19 18:01:53 +00:00
2018-12-17 16:18:29 +00:00
#### `void bell()`
Beeps.
Available for: Apple 2, ZX Spectrum.
#### `void set_bg_color(byte color)`
Sets the screen background color.
Available for: C64, VIC-20, C64, C264 series.
#### `void set_border(byte color)`
Sets the screen border color.
Available for: VIC-20, C64, C264 series, ZX Spectrum.
#### `const byte black, white, red, green, blue, cyan, purple, yellow`
Various colour constants.
Available for: VIC-20, C64, C264 series, ZX Spectrum.